Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @everywhere function check()
- @async begin
- while true
- #println("Checking ",toMonitor)
- for w in toMonitor
- if haskey(lastUpdate,w) && convert(Int, Dates.value(now() - lastUpdate[w]) ) > 3000
- remotecall(isSuspected,1,w)
- end
- end
- sleep(2)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement