bin/cobench in cobench-0.0.41 vs bin/cobench in cobench-0.0.42
- old
+ new
@@ -80,10 +80,11 @@
a / b
end
def zero?(ms)
return true if ms.nil?
- return true unless ms.key?(:actual)
+ return true if ms[:total] == 0
+ return true if ms.key?(:actual) && ms[:actual] == 0
false
end
def actual(ms)
return 0 if zero?(ms)