mirror of
https://github.com/searxng/searxng.git
synced 2024-12-29 20:50:28 +00:00
[fix] error percentage @ stats page
This commit is contained in:
parent
d13c5aa37b
commit
53878fde2d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue