mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-02-02 06:48:14 -05:00
fix: bug
This commit is contained in:
parent
fb45ed8652
commit
100de12c21
@ -49,7 +49,7 @@ func (b *Box) AddUsers(p *core.AddUsersParams) (added int, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (b *Box) GetUserTraffic(tag, uuid string, reset bool) (up int64, down int64) {
|
func (b *Box) GetUserTraffic(tag, uuid string, reset bool) (up int64, down int64) {
|
||||||
if v, ok := b.hookServer.Hooker().counter.Load(tag); ok {
|
if v, ok := b.hookServer.counter.Load(tag); ok {
|
||||||
c := v.(*counter.TrafficCounter)
|
c := v.(*counter.TrafficCounter)
|
||||||
up = c.GetUpCount(uuid)
|
up = c.GetUpCount(uuid)
|
||||||
down = c.GetDownCount(uuid)
|
down = c.GetDownCount(uuid)
|
||||||
|
Loading…
Reference in New Issue
Block a user