logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: 53878fde2d46ac9c2d547de0212cdb13b5cb2b09
parent: d13c5aa37b02e4df8d5aa7481d0fece3a341f8c2
Author: asciimoo <asciimoo@gmail.com>
Date:   Sun,  5 Jan 2014 01:00:32 +0100

[fix] error percentage @ stats page

Diffstat:

searx/engines/__init__.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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