Fix traffic exhaustion detection

This commit is contained in:
Alireza Ahmadi
2023-04-11 03:14:00 +02:00
parent 501f778c9e
commit 07089455b5
2 changed files with 3 additions and 3 deletions

View File

@@ -348,7 +348,7 @@
depleted.push(client.email);
} else {
if ((client.expiryTime > 0 && (client.expiryTime-now < this.expireDiff)) ||
(client.total > 0 && (client.total-client.up+client.down < this.trafficDiff ))) expiring.push(client.email);
(client.total > 0 && (client.total-(client.up+client.down) < this.trafficDiff ))) expiring.push(client.email);
}
});
} else {