mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-11-17 10:35:10 +00:00
fix logic error in alarm compare
This commit is contained in:
parent
883143f204
commit
81325b0de5
@ -3934,8 +3934,8 @@ local Tunnels = ( function
|
|||||||
local rv = nextCycle
|
local rv = nextCycle
|
||||||
for _, tunnel in ipairs( tunnelList ) do
|
for _, tunnel in ipairs( tunnelList ) do
|
||||||
local ta = tunnel:getAlarm()
|
local ta = tunnel:getAlarm()
|
||||||
if ta ~= false
|
if ta == true or (type(ta) == "userdata"
|
||||||
and ta < rv then
|
and ta < rv) then
|
||||||
rv = ta
|
rv = ta
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user