diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-14 03:37:40 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-14 03:37:40 +0100 |
commit | 4dad2e360c1c464feef9a8aaff6e96a7636c54b7 (patch) | |
tree | 03290f705cef2ec761a0a1ee46b3bc38cb08e0ea /widgets/hddtemp.lua | |
parent | 237470c8f45190b213e3a173ce6ae1a74b3e11fe (diff) | |
download | vicious-legacy-4dad2e360c1c464feef9a8aaff6e96a7636c54b7.tar.xz |
API: missing warg should not break awesome
Diffstat (limited to 'widgets/hddtemp.lua')
-rw-r--r-- | widgets/hddtemp.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/hddtemp.lua b/widgets/hddtemp.lua index 6fcd05f..e5ab96d 100644 --- a/widgets/hddtemp.lua +++ b/widgets/hddtemp.lua @@ -16,12 +16,12 @@ module("vicious.widgets.hddtemp") -- {{{ HDD Temperature widget type -local function worker(format, port) - -- Fallback to default hddtemp port - if port == nil then port = 7634 end +local function worker(format, warg) + -- Fallback to default hddtemp warg + if warg == nil then warg = 7634 end -- Get info from the hddtemp daemon - local f = io.popen("curl --connect-timeout 1 -fsm 3 telnet://127.0.0.1:"..port) + 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 |