diff --git a/scripts/code.py b/scripts/code.py index bd49c5ea..e18961de 100755 --- a/scripts/code.py +++ b/scripts/code.py @@ -90,7 +90,7 @@ class RInt(co.namedtuple('RInt', 'x')): elif not old and not new: return 0.0 elif not old: - return 1.0 + return +m.inf else: return (new-old) / old diff --git a/scripts/cov.py b/scripts/cov.py index 232e2d40..7cfbf3e6 100755 --- a/scripts/cov.py +++ b/scripts/cov.py @@ -90,7 +90,7 @@ class RInt(co.namedtuple('RInt', 'x')): elif not old and not new: return 0.0 elif not old: - return 1.0 + return +m.inf else: return (new-old) / old diff --git a/scripts/data.py b/scripts/data.py index 245cb88c..cd79a12c 100755 --- a/scripts/data.py +++ b/scripts/data.py @@ -90,7 +90,7 @@ class RInt(co.namedtuple('RInt', 'x')): elif not old and not new: return 0.0 elif not old: - return 1.0 + return +m.inf else: return (new-old) / old diff --git a/scripts/perf.py b/scripts/perf.py index a33d76c1..15e607e1 100755 --- a/scripts/perf.py +++ b/scripts/perf.py @@ -99,7 +99,7 @@ class RInt(co.namedtuple('RInt', 'x')): elif not old and not new: return 0.0 elif not old: - return 1.0 + return +m.inf else: return (new-old) / old diff --git a/scripts/perfbd.py b/scripts/perfbd.py index 1fc167fd..2d05914a 100755 --- a/scripts/perfbd.py +++ b/scripts/perfbd.py @@ -90,7 +90,7 @@ class RInt(co.namedtuple('RInt', 'x')): elif not old and not new: return 0.0 elif not old: - return 1.0 + return +m.inf else: return (new-old) / old diff --git a/scripts/stack.py b/scripts/stack.py index b4089847..faa459d8 100755 --- a/scripts/stack.py +++ b/scripts/stack.py @@ -81,7 +81,7 @@ class RInt(co.namedtuple('RInt', 'x')): elif not old and not new: return 0.0 elif not old: - return 1.0 + return +m.inf else: return (new-old) / old diff --git a/scripts/structs.py b/scripts/structs.py index 3d1a2129..aa91cb7c 100755 --- a/scripts/structs.py +++ b/scripts/structs.py @@ -86,7 +86,7 @@ class RInt(co.namedtuple('RInt', 'x')): elif not old and not new: return 0.0 elif not old: - return 1.0 + return +m.inf else: return (new-old) / old diff --git a/scripts/summary.py b/scripts/summary.py index 2b1a0c8a..e65347f8 100755 --- a/scripts/summary.py +++ b/scripts/summary.py @@ -106,7 +106,7 @@ class RInt(co.namedtuple('RInt', 'x')): elif not old and not new: return 0.0 elif not old: - return 1.0 + return +m.inf else: return (new-old) / old