aboutsummaryrefslogtreecommitdiff
path: root/entropy.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-10-05 00:10:47 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-10-05 00:13:38 +0200
commitd81eed6d310bce28b3709980d80c433a04eefaae (patch)
tree3ab65939b04a86d22e39ad6a4a5ac3ab122257b8 /entropy.lua
parentc2b68ad3e78e366e611600f54dcfa8d760ed026f (diff)
downloadvicious-legacy-d81eed6d310bce28b3709980d80c433a04eefaae.tar.xz
Lots of coding style changes
Diffstat (limited to 'entropy.lua')
-rw-r--r--entropy.lua6
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
-- }}}