diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html
index 33fb41061..352b90eed 100644
--- a/searx/templates/oscar/preferences.html
+++ b/searx/templates/oscar/preferences.html
@@ -25,11 +25,13 @@
{{- "" -}}
{%- if stats[engine_name].time != None -%}
{{- stats[engine_name].time -}}{{- "" -}}
- {{- "" -}}
+
+ {%- if max_rate95 is not none and max_rate95 > 0 -%}
{{- "" -}}
{{- "" -}}
{{- "" -}}
- {{- "" -}}
+
+ {%- endif -%}
{{- "" -}}
{{- "" -}}
{{ _('Median') }}: {{ stats[engine_name].time }} {{- "" -}}
diff --git a/searx/templates/oscar/stats.html b/searx/templates/oscar/stats.html
index 94117b673..d9b2ab68e 100644
--- a/searx/templates/oscar/stats.html
+++ b/searx/templates/oscar/stats.html
@@ -52,11 +52,11 @@
{%- endif -%}
|
- {%- if engine_stat.total -%}
+ {%- if engine_stat.total is not none -%}
{{- engine_stat.total | round(1) -}} {{- "" -}}
{{- "" -}}
- {{- "" -}}
- {{- "" -}}
+ {% if engine_stat.http is not none and engine_stats.max_time %} {%- endif -%}
+ {% if engine_stat.processing is not none and engine_stats.max_time %} {%- endif -%}
{{- "" -}}
@@ -69,19 +69,19 @@
{{ _('Median') }} |
{{ engine_stat.total }} |
- {{ engine_stat.http }} |
+ {{ engine_stat.http or '' }} |
{{ engine_stat.processing }} |
{{ _('P80') }} |
{{ engine_stat.total_p80 }} |
- {{ engine_stat.http_p80 }} |
+ {{ engine_stat.http_p80 or '' }} |
{{ engine_stat.processing_p80 }} |
{{ _('P95') }} |
{{ engine_stat.total_p95 }} |
- {{ engine_stat.http_p95 }} |
+ {{ engine_stat.http_p95 or '' }} |
{{ engine_stat.processing_p95 }} |
diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html
index 6d33233c7..e3b1545b9 100644
--- a/searx/templates/simple/preferences.html
+++ b/searx/templates/simple/preferences.html
@@ -39,11 +39,13 @@
{{- "" -}}
{%- if stats[engine_name].time != None -%}
{{- stats[engine_name].time -}}{{- "" -}}
- {{- "" -}}
+
+ {%- if max_rate95 is not none and max_rate95 > 0 -%}
{{- "" -}}
{{- "" -}}
{{- "" -}}
- {{- "" -}}
+
+ {%- endif -%}
{{- "" -}}
{{- "" -}}
{{ _('Median') }}: {{ stats[engine_name].time }} {{- "" -}}
diff --git a/searx/templates/simple/stats.html b/searx/templates/simple/stats.html
index 67c9c79cc..7058d04d4 100644
--- a/searx/templates/simple/stats.html
+++ b/searx/templates/simple/stats.html
@@ -52,12 +52,11 @@
{%- endif -%}
|
- {%- if engine_stat.total -%}
-
+ {%- if engine_stat.total is not none -%}
{{- engine_stat.total | round(1) -}} {{- "" -}}
- {{- "" -}}
- {{- "" -}}
+ {% if engine_stat.http is not none and engine_stats.max_time %} {%- endif -%}
+ {% if engine_stat.processing is not none and engine_stats.max_time %} {%- endif -%}
| |