* luci/core: util.lua: implement min(utes) in parse_units()
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 3 Jun 2008 19:12:32 +0000 (19:12 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 3 Jun 2008 19:12:32 +0000 (19:12 +0000)
libs/core/luasrc/util.lua

index 6b474f6..074b435 100644 (file)
@@ -303,6 +303,7 @@ function parse_units(ustr)
                 w   = 60 * 60 * 24 * 7,
                 d   = 60 * 60 * 24,
                 h   = 60 * 60,
                 w   = 60 * 60 * 24 * 7,
                 d   = 60 * 60 * 24,
                 h   = 60 * 60,
+               min = 60,
 
                 -- storage sizes
                 kb  = 1024,
 
                 -- storage sizes
                 kb  = 1024,