aboutsummaryrefslogtreecommitdiff
path: root/thermal.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-08-03 04:33:18 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-08-03 04:33:18 +0200
commit3fe67d4311f1f099da9ff13849c70a97d5078228 (patch)
tree3cca98a867e1d65a25751bb2cd28133e4ce0b7d7 /thermal.lua
parent09fda0ab05c066a8f630e1d7a36f401bbc0ca68e (diff)
downloadvicious-legacy-3fe67d4311f1f099da9ff13849c70a97d5078228.tar.xz
Coding style changes in entropy, load, thermal, uptime.
Diffstat (limited to 'thermal.lua')
-rw-r--r--thermal.lua2
1 files changed, 1 insertions, 1 deletions
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