lib/bluepill/condition_watch.rb in bluepill-0.0.30 vs lib/bluepill/condition_watch.rb in bluepill-0.0.31
- old
+ new
@@ -16,10 +16,10 @@
@process_condition = ProcessConditions[@name].new(options)
end
def run(pid, tick_number = Time.now.to_i)
- if @last_ran_at.nil? || (@last_ran_at + @every) <= tick_number
+ if true || @last_ran_at.nil? || (@last_ran_at + @every) <= tick_number
@last_ran_at = tick_number
self.record_value(@process_condition.run(pid))
return @fires if self.fired?
end
EMPTY_ARRAY
\ No newline at end of file