节点排行增加条数限制

This commit is contained in:
刘祥超
2021-08-20 10:10:55 +08:00
parent df667c6ee6
commit b86c9aad6f
3 changed files with 6 additions and 4 deletions

View File

@@ -662,7 +662,7 @@ func (this *AdminService) ComposeAdminDashboard(ctx context.Context, req *pb.Com
// 节点排行
if isPlus {
topNodeStats, err := stats.SharedNodeTrafficHourlyStatDAO.FindTopNodeStats(tx, "node", hourFrom, hourTo)
topNodeStats, err := stats.SharedNodeTrafficHourlyStatDAO.FindTopNodeStats(tx, "node", hourFrom, hourTo, 10)
if err != nil {
return nil, err
}