diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-08-03 04:33:18 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-08-03 04:33:18 +0200 |
commit | 3fe67d4311f1f099da9ff13849c70a97d5078228 (patch) | |
tree | 3cca98a867e1d65a25751bb2cd28133e4ce0b7d7 | |
parent | 09fda0ab05c066a8f630e1d7a36f401bbc0ca68e (diff) | |
download | vicious-legacy-3fe67d4311f1f099da9ff13849c70a97d5078228.tar.xz |
Coding style changes in entropy, load, thermal, uptime.
-rw-r--r-- | entropy.lua | 2 | ||||
-rw-r--r-- | load.lua | 2 | ||||
-rw-r--r-- | thermal.lua | 2 | ||||
-rw-r--r-- | uptime.lua | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/entropy.lua b/entropy.lua index a41fb38..c9b798d 100644 --- a/entropy.lua +++ b/entropy.lua @@ -25,7 +25,7 @@ function worker(format, poolsize) -- Get available entropy local f = io.open("/proc/sys/kernel/random/entropy_avail") - local ent_avail = f:read() + local ent_avail = f:read("*line") f:close() -- Calculate percentage @@ -17,7 +17,7 @@ module("vicious.load") function worker(format) -- Get load averages local f = io.open('/proc/loadavg') - local line = f:read() + local line = f:read("*line") f:close() -- Get load data diff --git a/thermal.lua b/thermal.lua index 8d4057a..d84d3f3 100644 --- a/thermal.lua +++ b/thermal.lua @@ -17,7 +17,7 @@ module("vicious.thermal") function worker(format, thermal_zone) -- Get thermal zone local f = io.open("/proc/acpi/thermal_zone/" .. thermal_zone .. "/temperature") - local line = f:read() + local line = f:read("*line") f:close() -- Get temperature data @@ -20,7 +20,7 @@ module("vicious.uptime") function worker(format, padding) -- Get /proc/uptime local f = io.open("/proc/uptime") - local line = f:read() + local line = f:read("*line") f:close() -- Format data |