diff options
author | Joachim Breitner <mail@joachim-breitner.de> | 2014-07-17 13:03:09 +0200 |
---|---|---|
committer | Joachim Breitner <mail@joachim-breitner.de> | 2014-07-17 13:03:09 +0200 |
commit | 10f3d396492742902d183a503c1bcb145d28df7f (patch) | |
tree | 616d3b9c3c9a268bb676be64c9c255baf15a0a70 /testsuite/driver | |
parent | 13cb4c279da4f4511e3bb78b22420daf9915d147 (diff) | |
download | haskell-10f3d396492742902d183a503c1bcb145d28df7f.tar.gz |
Correctly round when calculating the deviation
Diffstat (limited to 'testsuite/driver')
-rw-r--r-- | testsuite/driver/testlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index 091a1eac3f..126c8e4102 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/driver/testlib.py @@ -1045,7 +1045,7 @@ def checkStats(name, way, stats_file, range_fields): lowerBound = trunc( expected * ((100 - float(dev))/100)) upperBound = trunc(0.5 + ceil(expected * ((100 + float(dev))/100))) - deviation = round(((val * 100)/ expected) - 100, 1) + deviation = round(((float(val) * 100)/ expected) - 100, 1) if val < lowerBound: print field, 'value is too low:' |