From 9b8c8101b5ba5e80278a2c1447504035c9d49012 Mon Sep 17 00:00:00 2001 From: MikoyChinese Date: Mon, 10 Jan 2022 18:36:21 +0800 Subject: [PATCH] Add Network Traffic Statistics in service page. --- resource/template/theme-mdui/service.html | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/resource/template/theme-mdui/service.html b/resource/template/theme-mdui/service.html index 3ace361..10a39d6 100644 --- a/resource/template/theme-mdui/service.html +++ b/resource/template/theme-mdui/service.html @@ -72,6 +72,45 @@ + + {{if .CycleTransferStats}} +

Network Traffic Statistics

+
+ + + + + + + + + + + + + + + + {{range $id, $stats := .CycleTransferStats}} + {{range $innerId, $transfer := $stats.Transfer}} + + + + + + + + + + + + {{end}} + {{end}} + +
IDRuleSeverDate FromDate ToMAXMINCheck NextUsage
{{$id}}{{$stats.Name}}{{index $stats.ServerName $innerId}}{{$stats.From|tf}}{{$stats.To|tf}}{{$stats.Max|bf}}{{$stats.Min|bf}}{{(index $stats.NextUpdate $innerId)|sft}}{{$transfer|bf}}
+
+ {{end}} + {{template "theme-mdui/footer" .}}