summaryrefslogtreecommitdiff
path: root/searx/search
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-04-14 18:11:35 +0200
committerAlexandre Flament <alex@al-f.net>2021-04-21 16:24:46 +0200
commit7cfd8d900a9d828e5fbbcb5df65ffedbf11a5a0f (patch)
treec9388e1739ac76eed7da08bab475cbc5e9a93da6 /searx/search
parentc27fef1cdeeebcc17e21dbdc3dafad00de08a2ce (diff)
downloadsearxng-7cfd8d900a9d828e5fbbcb5df65ffedbf11a5a0f.tar.gz
searxng-7cfd8d900a9d828e5fbbcb5df65ffedbf11a5a0f.zip
[mod] oscar: /preferences , engines tab: report engine times
* display the median time instead of the average. * add a "Reliability" column (sum up the metrics and the checker results). * the "selected language", "SafeSearch", "Time range" values are displayed as "broken" when the checker tests fail.
Diffstat (limited to 'searx/search')
-rw-r--r--searx/search/checker/impl.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/search/checker/impl.py b/searx/search/checker/impl.py
index 5cb289ec6..dd090c513 100644
--- a/searx/search/checker/impl.py
+++ b/searx/search/checker/impl.py
@@ -5,6 +5,7 @@ import types
import functools
import itertools
from time import time
+from timeit import default_timer
from urllib.parse import urlparse
import re
@@ -386,7 +387,7 @@ class Checker:
params = self.processor.get_params(search_query, engineref_category)
if params is not None:
counter_inc('engine', search_query.engineref_list[0].name, 'search', 'count', 'sent')
- self.processor.search(search_query.query, params, result_container, time(), 5)
+ self.processor.search(search_query.query, params, result_container, default_timer(), 5)
return result_container
def get_result_container_tests(self, test_name: str, search_query: SearchQuery) -> ResultContainerTests: