]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/lua: bad multiplier for GB
authorMarek Vavruša <marek.vavrusa@nic.cz>
Sat, 16 May 2015 16:06:15 +0000 (18:06 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Mon, 18 May 2015 17:49:49 +0000 (19:49 +0200)
daemon/lua/sandbox.lua

index 2dd2e417ccc6cbc161006a9e08d780b6ed41bfb5..9a621f0c0b4d87b28267996dbd9aec4cbd669de4 100644 (file)
@@ -1,7 +1,7 @@
 -- Units
 kB = 1024
-MB = 1024*1024
-GB = 1024*1024
+MB = 1024*kB
+GB = 1024*MB
 -- Time
 sec = 1000
 minute = 60 * sec
@@ -146,4 +146,4 @@ function table_print (tt, indent, done)
        else
                io.write(tostring(tt) .. "\n")
        end
-end
\ No newline at end of file
+end