lib/bluepill/process_statistics.rb in bluepill-0.0.50 vs lib/bluepill/process_statistics.rb in bluepill-0.0.51

- old
+ new

@@ -11,11 +11,11 @@ def record_event(event, reason) @events.push([event, reason, Time.now]) end def to_s - str = @events.reverse.collect do |(event, reason, time)| - str << " #{event} at #{time.strftime(STRFTIME)} - #{reason || "unspecified"}" + str = @events.reverse.map do |(event, reason, time)| + " #{event} at #{time.strftime(STRFTIME)} - #{reason || "unspecified"}" end.join("\n") "event history:\n#{str}" end end