Skip to content
Snippets Groups Projects
Commit 5fa55c83 authored by Nick Mathewson's avatar Nick Mathewson :family:
Browse files

Bugfix: when no units are given, default to seconds or bytes.

svn:r2960
parent e5163453
No related branches found
No related tags found
No related merge requests found
...@@ -2237,6 +2237,7 @@ struct unit_table_t { ...@@ -2237,6 +2237,7 @@ struct unit_table_t {
}; };
static struct unit_table_t memory_units[] = { static struct unit_table_t memory_units[] = {
{ "", 1 },
{ "b", 1<< 0 }, { "b", 1<< 0 },
{ "byte", 1<< 0 }, { "byte", 1<< 0 },
{ "bytes", 1<< 0 }, { "bytes", 1<< 0 },
...@@ -2257,6 +2258,7 @@ static struct unit_table_t memory_units[] = { ...@@ -2257,6 +2258,7 @@ static struct unit_table_t memory_units[] = {
}; };
static struct unit_table_t time_units[] = { static struct unit_table_t time_units[] = {
{ "", 1 },
{ "second", 1 }, { "second", 1 },
{ "seconds", 1 }, { "seconds", 1 },
{ "minute", 60 }, { "minute", 60 },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment