From 3fe67d4311f1f099da9ff13849c70a97d5078228 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Mon, 3 Aug 2009 04:33:18 +0200 Subject: Coding style changes in entropy, load, thermal, uptime. --- thermal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thermal.lua') 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 -- cgit v1.2.3