lib/new_relic/stats.rb in newrelic_rpm-2.13.3 vs lib/new_relic/stats.rb in newrelic_rpm-2.13.4.eum1
- old
+ new
@@ -133,9 +133,12 @@
def duration
end_time - begin_time
end
+ def midpoint
+ begin_time + (duration/2)
+ end
def calls_per_minute
if duration.zero?
0
else
(call_count / duration.to_f) * 60.0