From 1603b5fe82782f4b1f2c570166984b528479d4fe Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Thu, 10 Sep 2009 17:04:41 +0200 Subject: Curl connect timeout 1s, max time 3s --- hddtemp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hddtemp.lua') diff --git a/hddtemp.lua b/hddtemp.lua index 0cc6c20..38bbe13 100644 --- a/hddtemp.lua +++ b/hddtemp.lua @@ -19,7 +19,7 @@ local function worker(format, port) if port == nil then port = 7634 end -- Get info from the hddtemp daemon - local f = io.popen("curl --max-time 3 -f -s telnet://127.0.0.1:" .. port) + local f = io.popen("curl --connect-timeout 1 -fsm 3 telnet://127.0.0.1:" .. port) local hdd_temp = {} -- Get temperature data -- cgit v1.2.3