lib/bluepill/condition_watch.rb in bluepill-0.0.24 vs lib/bluepill/condition_watch.rb in bluepill-0.0.25
- old
+ new
@@ -7,10 +7,10 @@
@name = name
@logger = options.delete(:logger)
@fires = options.has_key?(:fires) ? Array(options.delete(:fires)) : [:restart]
@every = options.delete(:every)
- @times = options[:times] || [1,1]
+ @times = options.delete(:times) || [1,1]
@times = [@times, @times] unless @times.is_a?(Array) # handles :times => 5
self.clear_history!
@process_condition = ProcessConditions[@name].new(options)
\ No newline at end of file