Skip to content

Commit

Permalink
过滤流量为0的用户
Browse files Browse the repository at this point in the history
  • Loading branch information
morooi committed Jan 7, 2024
1 parent fa5ddbe commit b476656
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions traffic.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ func checkAndUpdateXrayTraffic() {

xrayUserStatsList := make([]XrayUserStats, 0)
for _, traffic := range traffics {
if traffic.Up == 0 && traffic.Down == 0 {
continue
}
xrayUserStats := XrayUserStats{
User: traffic.User,
Date: formattedDate,
Expand Down

0 comments on commit b476656

Please sign in to comment.