lib/benchmark/http/statistics.rb in benchmark-http-0.4.0 vs lib/benchmark/http/statistics.rb in benchmark-http-0.4.1
- old
+ new
@@ -127,10 +127,10 @@
return result
ensure
@count -= 1
- if @count == 0
+ if @count == 0 and end_time
@total_time += end_time - @start_time
@start_time = nil
end
end