lib/monkeyshines/monitor/periodic_logger.rb in monkeyshines-0.2.1 vs lib/monkeyshines/monitor/periodic_logger.rb in monkeyshines-0.2.2

- old
+ new

@@ -22,10 +22,11 @@ # periodic_logger.periodically{ [morbenfactor, crunkosity, exuberance] } # end # def periodically &block super do - result = [ "%10d"%iter, "%7.1f"%since, "%7.1f"%rate, (block ? block.call : nil) ].flatten.compact + now = Time.now.utc.to_f + result = [ "%10d"%iter, "%7.1f"%since, "%7.1f"%inst_rate(now), (block ? block.call : nil) ].flatten.compact Log.info result.join("\t") end end end end