lib/benchmark_driver/output/compare.rb in benchmark_driver-0.10.13 vs lib/benchmark_driver/output/compare.rb in benchmark_driver-0.10.14

- old
+ new

@@ -102,11 +102,11 @@ ensure $stdout.sync = sync end def humanize(value, width = 10) - if value < 0 - raise ArgumentError.new("Negative value: #{value.inspect}") + if value <= 0 + raise ArgumentError.new("Non positive value: #{value.inspect}") end scale = (Math.log10(value) / 3).to_i return "%#{width}s" % value.to_s if scale < 0 # like 1.23e-04