diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-05 00:10:47 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-05 00:10:47 +0200 |
commit | 4602ca2fa5e8e2e408713f72ae7e4cd14480bc01 (patch) | |
tree | bfbf75b8afd738f5a036737404f3eafe87586c66 /entropy.lua | |
parent | af4e85f99d0ac63127f19640ef47d768d7bed7cd (diff) | |
download | vicious-legacy-4602ca2fa5e8e2e408713f72ae7e4cd14480bc01.tar.xz |
Lots of coding style changes
Diffstat (limited to 'entropy.lua')
-rw-r--r-- | entropy.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/entropy.lua b/entropy.lua index ca7ee85..d36a8a9 100644 --- a/entropy.lua +++ b/entropy.lua @@ -21,13 +21,13 @@ local function worker(format, poolsize) -- Get available entropy local f = io.open("/proc/sys/kernel/random/entropy_avail") - local ent_avail = f:read("*line") + local ent = f:read("*line") f:close() -- Calculate percentage - local ent_avail_percent = math.ceil(ent_avail * 100 / poolsize) + local ent_percent = math.ceil(ent * 100 / poolsize) - return {ent_avail, ent_avail_percent} + return {ent, ent_percent} end -- }}} |