diff --git a/README.md b/README.md
index 09c17bd..567a272 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
LOGO designed by 熊大 .
-
+
:trollface: 哪吒监控 一站式轻监控轻运维系统。支持系统状态、HTTP(SSL 证书变更、即将到期、到期)、TCP、Ping 监控报警,计划任务和在线终端。
diff --git a/cmd/dashboard/controller/controller.go b/cmd/dashboard/controller/controller.go index 4bc7def..7f0cafb 100644 --- a/cmd/dashboard/controller/controller.go +++ b/cmd/dashboard/controller/controller.go @@ -44,6 +44,9 @@ func ServeWeb(port uint) *http.Server { "sf": func(duration uint64) string { return time.Duration(time.Duration(duration) * time.Second).String() }, + "sft": func(future time.Time) string { + return time.Until(future).String() + }, "bf": func(b uint64) string { return bytefmt.ByteSize(b) }, diff --git a/model/alertrule.go b/model/alertrule.go index a5aee7f..8d9140d 100644 --- a/model/alertrule.go +++ b/model/alertrule.go @@ -11,6 +11,8 @@ type CycleTransferStats struct { Name string From time.Time To time.Time + Max uint64 + Min uint64 ServerName map[uint64]string Transfer map[uint64]uint64 NextUpdate map[uint64]time.Time diff --git a/resource/static/main.css b/resource/static/main.css index 5cc6096..0153942 100644 --- a/resource/static/main.css +++ b/resource/static/main.css @@ -7,7 +7,7 @@ .nb-container { padding-top: 75px; min-height: 100vh; - padding-bottom: 55px; + padding-bottom: 65px; margin-bottom: -47px; } diff --git a/resource/template/common/header.html b/resource/template/common/header.html index c32f1ba..1756499 100644 --- a/resource/template/common/header.html +++ b/resource/template/common/header.html @@ -9,7 +9,7 @@