From: Marek VavruĊĦa Date: Wed, 29 Apr 2015 14:13:41 +0000 (+0200) Subject: daemon/lua: time constants in env X-Git-Tag: v1.0.0-beta1~225^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caadecee97b61eb852e28741accbc1e660e7fb05;p=thirdparty%2Fknot-resolver.git daemon/lua: time constants in env --- diff --git a/daemon/lua/sandbox.lua b/daemon/lua/sandbox.lua index 0bad92a70..f9003d3c7 100644 --- a/daemon/lua/sandbox.lua +++ b/daemon/lua/sandbox.lua @@ -2,6 +2,10 @@ kB = 1024 MB = 1024*1024 GB = 1024*1024 +-- Time +sec = 1000 +minute = 60 * sec +hour = 60 * minute -- Function aliases -- `env.VAR returns os.getenv(VAR)`