mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
[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
Block a user