lib/bluepill/condition_watch.rb in bluepill-0.0.23 vs lib/bluepill/condition_watch.rb in bluepill-0.0.24

- old
+ new

@@ -46,10 +46,10 @@ def to_s # TODO: this will be out of order because of the way history values are assigned # use (@history[(@history_index - 1)..1] + @history[0..(@history_index - 1)]). # collect {|v| "#{v[0]}#{v[1] ? '' : '*'}"}.join(", ") # but that's gross so... it's gonna be out of order till we figure out a better way to get it in order - data = @history.collect {|v| "#{v[0]}#{v[1] ? '' : '*'}" if v}.compact.join(", ") + data = @history.collect {|v| "#{@process_condition.format_value(v[0])}#{v[1] ? '' : '*'}" if v}.compact.join(", ") "#{@name}: [#{data}]" end end end \ No newline at end of file