From 8c9411cfbab4c523cb64e270d8bac776e51f9565 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Sat, 22 Jun 2013 00:43:13 +0200 Subject: [PATCH] Also apply math fix for overhead --- lib/mutant/reporter/cli/printer/config.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mutant/reporter/cli/printer/config.rb b/lib/mutant/reporter/cli/printer/config.rb index 9fbd6b35..b459d698 100644 --- a/lib/mutant/reporter/cli/printer/config.rb +++ b/lib/mutant/reporter/cli/printer/config.rb @@ -131,7 +131,8 @@ module Mutant # @api private # def overhead - (runtime - killtime) / runtime * 100 + return if runtime.zero? + Rational(runtime - killtime, runtime) * 100 end # Return runtime