aboutsummaryrefslogtreecommitdiff
path: root/src/util/strings.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-09-15 18:45:28 +0200
committerChristian Grothoff <christian@grothoff.org>2018-09-15 18:46:06 +0200
commit0850783a17fb39e744fed779b77ad46ac5a4ed54 (patch)
treee199593d28db589b6d75b6538133d34d3604697a /src/util/strings.c
parente91d46cdbbc97414968fa751fd1f596757c56875 (diff)
downloadgnunet-0850783a17fb39e744fed779b77ad46ac5a4ed54.tar.gz
gnunet-0850783a17fb39e744fed779b77ad46ac5a4ed54.zip
warn better if config option is invalid, allow second and seconds as time units
Diffstat (limited to 'src/util/strings.c')
-rw-r--r--src/util/strings.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/strings.c b/src/util/strings.c
index ea3c8cfb9..e3bdadd39 100644
--- a/src/util/strings.c
+++ b/src/util/strings.c
@@ -331,6 +331,8 @@ GNUNET_STRINGS_fancy_time_to_relative (const char *fancy_time,
331 { "us", 1}, 331 { "us", 1},
332 { "ms", 1000 }, 332 { "ms", 1000 },
333 { "s", 1000 * 1000LL }, 333 { "s", 1000 * 1000LL },
334 { "second", 1000 * 1000LL },
335 { "seconds", 1000 * 1000LL },
334 { "\"", 1000 * 1000LL }, 336 { "\"", 1000 * 1000LL },
335 { "m", 60 * 1000 * 1000LL}, 337 { "m", 60 * 1000 * 1000LL},
336 { "min", 60 * 1000 * 1000LL}, 338 { "min", 60 * 1000 * 1000LL},