summaryrefslogtreecommitdiff
path: root/searx/engines/__init__.py
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-01-05 01:00:32 +0100
committerasciimoo <asciimoo@gmail.com>2014-01-05 01:00:32 +0100
commit53878fde2d46ac9c2d547de0212cdb13b5cb2b09 (patch)
treed00ac12f5fe0b71d758366b7c03e7cdd696abae8 /searx/engines/__init__.py
parentd13c5aa37b02e4df8d5aa7481d0fece3a341f8c2 (diff)
downloadsearxng-53878fde2d46ac9c2d547de0212cdb13b5cb2b09.tar.gz
searxng-53878fde2d46ac9c2d547de0212cdb13b5cb2b09.zip
[fix] error percentage @ stats page
Diffstat (limited to 'searx/engines/__init__.py')
-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