lib/god/conditions/ping.rb in olgen-god-0.9.1 vs lib/god/conditions/ping.rb in olgen-god-0.9.2

- old
+ new

@@ -30,13 +30,13 @@ def test cmd = "ping -W #{self.timeout} -c 5 #{self.host}" ping_result = `#{cmd}` if ping_result=~/time=/ self.info = "Server reachable via ping!" - return timeline_test(self.trigger_on) + return timeline_test(true) end self.info = "Server unreachable via ping!!!" - return timeline_test(!self.trigger_on) + return timeline_test(false) end end end end \ No newline at end of file