From be574c4b1dfb4641f929fbf394eb845e51b8be51 Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 19 Mar 2025 13:59:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=92=E4=BB=B6=E7=9C=8B=E6=9D=BF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/stats_dashboard/templates/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/stats_dashboard/templates/index.html b/plugins/stats_dashboard/templates/index.html index 8255ab4..f59a9d8 100644 --- a/plugins/stats_dashboard/templates/index.html +++ b/plugins/stats_dashboard/templates/index.html @@ -56,7 +56,11 @@ 平均响应时间
- {{ "%.2f"|format(avgResponseTime|float) }} ms + {% if avgResponseTime is defined %} + {{ "%.2f"|format(avgResponseTime|float) }} ms + {% else %} + 0.00 ms + {% endif %}