From b5ce83d999eb07ca502af780af997ab3624de0fe Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Sun, 15 Nov 2020 12:50:56 +0600 Subject: [PATCH] v4.5.3.0 Changelog: https://haproxy-wi.org/changelog.py#4_5_3 --- app/templates/admin.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/templates/admin.html b/app/templates/admin.html index 3f4e0cbe..6209d697 100644 --- a/app/templates/admin.html +++ b/app/templates/admin.html @@ -269,28 +269,28 @@ {% set service_name = 'SMON' %} {% set service_link = 'smon' %} {% set desc_link = 'https://haproxy-wi.org/services.py?service=smon' %} - {% if s.3|int() < smon_ver|int() %} + {% if s.3|float < smon_ver|float %} {% set is_need_update = 1 %} {% endif %} {% elif s.0 == 'checker_haproxy' %} {% set service_name = 'Checker' %} {% set service_link = 'checker' %} {% set desc_link = 'https://haproxy-wi.org/services.py?service=checker' %} - {% if s.3|int() < checker_ver|int() %} + {% if s.3|float < checker_ver|float %} {% set is_need_update = 1 %} {% endif %} {% elif s.0 == 'keep_alive' %} {% set service_name = 'Auto start' %} {% set service_link = 'auto_start' %} {% set desc_link = 'https://haproxy-wi.org/services.py?service=auto_start' %} - {% if s.3|int() < keep_ver|int() %} + {% if s.3|float < keep_ver|float %} {% set is_need_update = 1 %} {% endif %} {% elif s.0 == 'metrics_haproxy' %} {% set service_name = 'Metrics' %} {% set service_link = 'metrics' %} {% set desc_link = 'https://haproxy-wi.org/services.py?service=metrics' %} - {% if s.3|int() < metrics_ver|int() %} + {% if s.3|float < metrics_ver|float %} {% set is_need_update = 1 %} {% endif %} {% endif %}