diff options
author | asciimoo <asciimoo@gmail.com> | 2014-01-05 01:00:32 +0100 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2014-01-05 01:00:32 +0100 |
commit | 53878fde2d46ac9c2d547de0212cdb13b5cb2b09 (patch) | |
tree | d00ac12f5fe0b71d758366b7c03e7cdd696abae8 /searx/engines/__init__.py | |
parent | d13c5aa37b02e4df8d5aa7481d0fece3a341f8c2 (diff) | |
download | searxng-53878fde2d46ac9c2d547de0212cdb13b5cb2b09.tar.gz searxng-53878fde2d46ac9c2d547de0212cdb13b5cb2b09.zip |
[fix] error percentage @ stats page
Diffstat (limited to 'searx/engines/__init__.py')
-rw-r--r-- | searx/engines/__init__.py | 2 |
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 |