aboutsummaryrefslogtreecommitdiff
path: root/widgets/hddtemp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/hddtemp.lua')
-rw-r--r--widgets/hddtemp.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/hddtemp.lua b/widgets/hddtemp.lua
index e5ab96d..7559512 100644
--- a/widgets/hddtemp.lua
+++ b/widgets/hddtemp.lua
@@ -20,9 +20,8 @@ local function worker(format, warg)
-- Fallback to default hddtemp warg
if warg == nil then warg = 7634 end
- -- Get info from the hddtemp daemon
+ local hdd_temp = {} -- Get info from the hddtemp daemon
local f = io.popen("curl --connect-timeout 1 -fsm 3 telnet://127.0.0.1:"..warg)
- local hdd_temp = {}
for line in f:lines() do
for d, t in string.gmatch(line, "|([%/%a%d]+)|.-|([%d]+)|[CF]+|") do