luci-0.8: merge r4527

This commit is contained in:
Jo-Philipp Wich 2009-05-15 14:25:05 +00:00
parent 10a73eb41a
commit e928518ba7

View file

@ -21,7 +21,7 @@ if posix.access("/var/run/olsrd.pid") then
local systime = os.time()
local wdgtime = tonumber(io.lines(stamp)())
if not wdgtime or ( systime - wdgtime ) > intv then
if not wdgtime or ( systime - wdgtime ) > ( intv * 2 ) then
os.execute("logger -t 'OLSR watchdog' 'Process died - restarting!'")
os.execute("/etc/init.d/olsrd restart")
end