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

This commit is contained in:
刘祥超
2022-08-27 18:39:00 +08:00
parent fa61f277e4
commit fc14800d70
6 changed files with 111 additions and 115 deletions

View File

@@ -424,10 +424,6 @@ func (this *ServerStatBoardService) ComposeServerStatBoard(ctx context.Context,
if err != nil {
return nil, err
}
if bytes == 0 {
// 尝试从缓存中读取
bytes = ServerBandwidthGetCacheBytes(req.ServerId, day, minute)
}
if bytes > 0 {
result.MinutelyPeekBandwidthBytes = bytes