mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
Bugfix: when no units are given, default to seconds or bytes.
svn:r2960
This commit is contained in:
parent
e516345383
commit
5fa55c8317
@ -2237,6 +2237,7 @@ struct unit_table_t {
|
||||
};
|
||||
|
||||
static struct unit_table_t memory_units[] = {
|
||||
{ "", 1 },
|
||||
{ "b", 1<< 0 },
|
||||
{ "byte", 1<< 0 },
|
||||
{ "bytes", 1<< 0 },
|
||||
@ -2257,6 +2258,7 @@ static struct unit_table_t memory_units[] = {
|
||||
};
|
||||
|
||||
static struct unit_table_t time_units[] = {
|
||||
{ "", 1 },
|
||||
{ "second", 1 },
|
||||
{ "seconds", 1 },
|
||||
{ "minute", 60 },
|
||||
|
Loading…
Reference in New Issue
Block a user