服务列表带宽使用新的算法

This commit is contained in:
刘祥超
2022-08-27 18:37:44 +08:00
parent b0865cbbdc
commit 7ef4f60309
2 changed files with 3 additions and 6 deletions

View File

@@ -217,11 +217,8 @@ func (this *IndexAction) RunGet(params struct {
// 统计数据
var bandwidth = ""
if server.LatestServerDailyStat != nil {
var bytesPerSecond = server.LatestServerDailyStat.Bytes / 300
if bytesPerSecond > 0 {
bandwidth = numberutils.FormatBytes(bytesPerSecond)
}
if server.BandwidthBytes > 0 {
bandwidth = numberutils.FormatBytes(server.BandwidthBytes)
}
serverMaps = append(serverMaps, maps.Map{