From 53878fde2d46ac9c2d547de0212cdb13b5cb2b09 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Sun, 5 Jan 2014 01:00:32 +0100 Subject: [PATCH] [fix] error percentage @ stats page --- searx/engines/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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