diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-15 17:55:25 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-15 17:55:25 +0100 |
commit | 0299c15dc0869a12ceec947e6e51088bb88da56d (patch) | |
tree | e1989cb5e9fe5ea1e0edaed0754265a4056690c4 /widgets/hddtemp.lua | |
parent | 4fc6dffe94d01a4696bf1f7420b79b05ecf5d35c (diff) | |
download | vicious-legacy-0299c15dc0869a12ceec947e6e51088bb88da56d.tar.xz |
widgets: minor cleanup before a tag in cpuinf, fs, mbox...
Diffstat (limited to 'widgets/hddtemp.lua')
-rw-r--r-- | widgets/hddtemp.lua | 3 |
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 |