From d81eed6d310bce28b3709980d80c433a04eefaae Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Mon, 5 Oct 2009 00:10:47 +0200 Subject: Lots of coding style changes --- entropy.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'entropy.lua') 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 -- }}} -- cgit v1.2.3