mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
fix hy counter
This commit is contained in:
@@ -23,9 +23,9 @@ func (h *Hy) GetUserTraffic(tag, uuid string, reset bool) (up int64, down int64)
|
|||||||
s := v.(*Server)
|
s := v.(*Server)
|
||||||
auth := base64.StdEncoding.EncodeToString([]byte(uuid))
|
auth := base64.StdEncoding.EncodeToString([]byte(uuid))
|
||||||
up = s.counter.getCounters(auth).UpCounter.Load()
|
up = s.counter.getCounters(auth).UpCounter.Load()
|
||||||
down = s.counter.getCounters(uuid).DownCounter.Load()
|
down = s.counter.getCounters(auth).DownCounter.Load()
|
||||||
if reset {
|
if reset {
|
||||||
s.counter.Reset(uuid)
|
s.counter.Reset(auth)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user