diff --git a/core/hy2/user.go b/core/hy2/user.go index 8715ba1..f473e58 100644 --- a/core/hy2/user.go +++ b/core/hy2/user.go @@ -71,7 +71,7 @@ func (h *Hysteria2) GetUserTrafficSlice(tag string, reset bool) ([]panel.UserTra traffic := value.(*counter.TrafficStorage) up := traffic.UpCounter.Load() down := traffic.DownCounter.Load() - if up+down >= hook.ReportMinTrafficBytes { + if up+down > hook.ReportMinTrafficBytes { if reset { traffic.UpCounter.Store(0) traffic.DownCounter.Store(0) diff --git a/core/sing/user.go b/core/sing/user.go index 8e2480e..e271b52 100644 --- a/core/sing/user.go +++ b/core/sing/user.go @@ -146,7 +146,7 @@ func (b *Sing) GetUserTrafficSlice(tag string, reset bool) ([]panel.UserTraffic, traffic := value.(*counter.TrafficStorage) up := traffic.UpCounter.Load() down := traffic.DownCounter.Load() - if up+down >= b.nodeReportMinTrafficBytes[tag] { + if up+down > b.nodeReportMinTrafficBytes[tag] { if reset { traffic.UpCounter.Store(0) traffic.DownCounter.Store(0) diff --git a/core/xray/user.go b/core/xray/user.go index ea66a7d..4103317 100644 --- a/core/xray/user.go +++ b/core/xray/user.go @@ -60,7 +60,7 @@ func (x *Xray) GetUserTrafficSlice(tag string, reset bool) ([]panel.UserTraffic, traffic := value.(*counter.TrafficStorage) up := traffic.UpCounter.Load() down := traffic.DownCounter.Load() - if up+down >= x.nodeReportMinTrafficBytes[tag] { + if up+down > x.nodeReportMinTrafficBytes[tag] { if reset { traffic.UpCounter.Store(0) traffic.DownCounter.Store(0)