lib/bluepill/condition_watch.rb in bluepill-0.1.2 vs lib/bluepill/condition_watch.rb in bluepill-0.1.3
- old
+ new
@@ -13,11 +13,11 @@
@every = options.delete(:every)
@times = options.delete(:times) || [1, 1]
@times = [@times, @times] unless @times.is_a?(Array) # handles times: 5
@include_children = options.delete(:include_children) || false
- self.clear_history!
+ clear_history!
@process_condition = ProcessConditions[@name].new(options)
end
def run(pid, tick_number = Time.now.to_i)
@@ -32,10 +32,10 @@
end
@history << HistoryValue.new(@process_condition.format_value(value), @process_condition.check(value))
logger.info(to_s)
- return @fires if self.fired?
+ return @fires if fired?
end
EMPTY_ARRAY
end
def clear_history!