summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--searx/engines/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py
index 43ad1b52e..1ca11ff90 100644
--- a/searx/engines/__init__.py
+++ b/searx/engines/__init__.py
@@ -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