Skip to content

Commit 2dde625

Browse files
committed
fix: account_traffic_stats
1 parent c6aaa7f commit 2dde625

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/fun90/airopscat/service/NodeDeploymentService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ private void processNodeConfiguration(Node node, List<InboundConfig> inbounds, L
266266
accounts = accounts.stream().filter(account -> {
267267
Long usedBytes = accountTrafficRepository.sumBytesByAccountId(account.getId());
268268
if (usedBytes != null) {
269-
return usedBytes <= account.getBandwidth() * 1024 * 1024 * 1024;
269+
long bandwidth = account.getBandwidth() * 1024L * 1024L * 1024L;
270+
return usedBytes < bandwidth;
270271
}
271272
return true;
272273
}).collect(Collectors.toList());

0 commit comments

Comments
 (0)