[fix] error percentage @ stats page

This commit is contained in:
asciimoo 2014-01-05 01:00:32 +01:00
parent d13c5aa37b
commit 53878fde2d

View File

@ -261,7 +261,7 @@ def get_engines_stats():
for engine in errors: for engine in errors:
if max_errors: if max_errors:
engine['percentage'] = int(engine['avg']/max_errors*100) engine['percentage'] = int(float(engine['avg'])/max_errors*100)
else: else:
engine['percentage'] = 0 engine['percentage'] = 0