From 06441afa79720ad486eea78410ca7efda22e6be9 Mon Sep 17 00:00:00 2001 From: wyx2685 Date: Thu, 7 Aug 2025 15:46:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=81=E9=87=8F=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E9=98=88=E5=80=BC=E5=8E=BB=E9=99=A4=EF=BC=9D=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/hy2/user.go | 2 +- core/sing/user.go | 2 +- core/xray/user.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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)