mirror of https://github.com/searx/searx
[fix] error percentage @ stats page
This commit is contained in:
parent
d13c5aa37b
commit
53878fde2d
|
@ -261,7 +261,7 @@ def get_engines_stats():
|
|||
|
||||
for engine in errors:
|
||||
if max_errors:
|
||||
engine['percentage'] = int(engine['avg']/max_errors*100)
|
||||
engine['percentage'] = int(float(engine['avg'])/max_errors*100)
|
||||
else:
|
||||
engine['percentage'] = 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue