aboutsummaryrefslogtreecommitdiff
path: root/thermal.lua
diff options
context:
space:
mode:
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