节点排行增加条数限制

This commit is contained in:
GoEdgeLab
2021-08-20 10:10:55 +08:00
parent b2e3fba97e
commit 69e4a91088
3 changed files with 6 additions and 4 deletions

View File

@@ -123,7 +123,7 @@ func (this *ServerStatBoardService) ComposeServerStatNodeClusterBoard(ctx contex
}
// 节点排行
topNodeStats, err := stats.SharedNodeTrafficHourlyStatDAO.FindTopNodeStatsWithClusterId(tx, "node", req.NodeClusterId, hourFrom, hourTo)
topNodeStats, err := stats.SharedNodeTrafficHourlyStatDAO.FindTopNodeStatsWithClusterId(tx, "node", req.NodeClusterId, hourFrom, hourTo, 10)
if err != nil {
return nil, err
}