Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-04-10 00:25:47 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-04-10 00:25:47 +0300
commitde26dbbc96de3c09fb3dda3086f125f591a1cbd6 (patch)
treee61feca2eb5e76f1bb11132f3332379791fe0ae6 /web/service
parente1da43053d23c995bcd6e7267cb20042398cd64f (diff)
fixed
Diffstat (limited to 'web/service')
-rw-r--r--web/service/tgbot.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/service/tgbot.go b/web/service/tgbot.go
index 2ab3dbb0..6da0df57 100644
--- a/web/service/tgbot.go
+++ b/web/service/tgbot.go
@@ -536,14 +536,14 @@ func (t *Tgbot) getExhausted() string {
for _, inbound := range inbounds {
if inbound.Enable {
if (inbound.ExpiryTime > 0 && (inbound.ExpiryTime-now < exDiff)) ||
- (inbound.Total > 0 && (inbound.Total-inbound.Up+inbound.Down < trDiff)) {
+ (inbound.Total > 0 && (inbound.Total-(inbound.Up+inbound.Down) < trDiff)) {
exhaustedInbounds = append(exhaustedInbounds, *inbound)
}
if len(inbound.ClientStats) > 0 {
for _, client := range inbound.ClientStats {
if client.Enable {
if (client.ExpiryTime > 0 && (client.ExpiryTime-now < exDiff)) ||
- (client.Total > 0 && (client.Total-client.Up+client.Down < trDiff)) {
+ (client.Total > 0 && (client.Total-(client.Up+client.Down) < trDiff)) {
exhaustedClients = append(exhaustedClients, client)
}
} else {