fix counter

This commit is contained in:
yuzuki999
2023-08-28 01:56:01 +08:00
parent 55b2642760
commit 13208c0541
2 changed files with 11 additions and 11 deletions

View File

@@ -12,7 +12,7 @@ func (c *Controller) reportUserTrafficTask() (err error) {
// Get User traffic
userTraffic := make([]panel.UserTraffic, 0)
for i := range c.userList {
down, up := c.server.GetUserTraffic(c.tag, c.userList[i].Uuid, true)
up, down := c.server.GetUserTraffic(c.tag, c.userList[i].Uuid, true)
if up > 0 || down > 0 {
if c.LimitConfig.EnableDynamicSpeedLimit {
if _, ok := c.traffic[c.userList[i].Uuid]; ok {