]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add support for days of the week to intervals
authorNick Mathewson <nickm@torproject.org>
Tue, 12 Mar 2013 01:35:50 +0000 (21:35 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 19 Mar 2013 20:03:58 +0000 (16:03 -0400)
src/or/config.c

index 6ccd65a57aa03800614c1b80ae43b98362fa5cd5..adbd367d126d3839e6e2be35f0ab67beb58dcd19 100644 (file)
@@ -6534,6 +6534,8 @@ static struct unit_table_t time_units[] = {
   { "days",     24*60*60 },
   { "week",     7*24*60*60 },
   { "weeks",    7*24*60*60 },
+  { "months",   2629728, }, /* about 30.437 days */
+  { "months",   2629728, },
   { NULL, 0 },
 };