v0.6.1 优化CSS、服务报警、服务状态展示

This commit is contained in:
naiba
2021-04-19 23:11:00 +08:00
parent 114f47cb0f
commit d3c3e55c88
9 changed files with 87 additions and 46 deletions

View File

@@ -54,7 +54,7 @@ func ServeWeb(port uint) {
}
if a == 0 {
// 这是从未在线的情况
return 1 / float32(b) * 100
return 0.00001 / float32(b) * 100
}
return float32(a) / float32(b) * 100
},
@@ -67,7 +67,7 @@ func ServeWeb(port uint) {
}
if a == 0 {
// 这是从未在线的情况
return 1 / float32(b) * 100
return 0.00001 / float32(b) * 100
}
return float32(a) / float32(b) * 100
},