Commit 10f3d396 authored by Joachim Breitner's avatar Joachim Breitner

Correctly round when calculating the deviation

parent 13cb4c27
......@@ -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:'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment