diff --git a/resource/template/theme-daynight/service.html b/resource/template/theme-daynight/service.html
index acf39df..435b3cb 100644
--- a/resource/template/theme-daynight/service.html
+++ b/resource/template/theme-daynight/service.html
@@ -1,40 +1,41 @@
{{define "theme-daynight/service"}}
{{template "common/header" .}}
+{{if ts .CustomCode}}
+{{.CustomCode|safe}}
+{{end}}
{{template "common/menu" .}}
-
- {{range $service := .Services}}
-
-
-
{{$service.Monitor.Name}}
-
30天在线率{{divU64 $service.TotalDown (addU64 $service.TotalUp $service.TotalDown)}}%
-
-
- {{range $i,$d := $service.Delay}}
-
-
-
- {{end}}
-
-
-
- {{if gt (addU64 $service.TotalUp $service.TotalDown) 0}}
- {{if gt (divU64 $service.TotalDown (addU64 $service.TotalUp $service.TotalDown)) 30.0}}故障
- {{else if gt (divU64 $service.TotalDown (addU64 $service.TotalUp $service.TotalDown)) 10.0}}
- 低可用{{else}}良好{{end}}
- {{else}}无数据
- {{end}}
-
-
-
- {{end}}
+
+
+
+
+
+ 名称 |
+ 30天在线率 |
+ 详情 |
+ 状态 |
+
+
+
+ {{range $service := .Services}}
+
+ {{$service.Monitor.Name}} |
+
+ {{float32f (divU64 $service.TotalUp (addU64 $service.TotalUp $service.TotalDown))}}%
+ |
+ {{range $i,$d := $service.Delay}}
+
+ {{end}}
+ |
+
+
+ {{statusName (divU64 $service.CurrentUp (addU64 $service.CurrentUp $service.CurrentDown))}}
+ |
+
{{end}}
+
+
diff --git a/service/dao/dao.go b/service/dao/dao.go
index 362c858..143e7ed 100644
--- a/service/dao/dao.go
+++ b/service/dao/dao.go
@@ -34,7 +34,7 @@ var CronLock sync.RWMutex
var Crons map[uint64]*model.Cron
var Cron *cron.Cron
-var Version = "v0.3.3"
+var Version = "v0.3.4"
func ReSortServer() {
ServerLock.RLock()