Also apply math fix for overhead
This commit is contained in:
parent
989e3277b4
commit
8c9411cfba
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue