Framework Update

This commit is contained in:
2024-01-31 22:15:08 +08:00
parent b5ff5e8b5f
commit 20678a6a0c
1459 changed files with 25954 additions and 16153 deletions
@@ -31,7 +31,7 @@ class TokenBucket extends ThrottleAbstract
if ($token_left < 1) {
$tmp = (int)ceil($duration / $max_requests);
$this->wait_seconds = $tmp - ($micronow - $last_time) % $tmp;
$this->wait_seconds = $tmp - intval(($micronow - $last_time)) % $tmp;
return false;
}
$this->cur_requests = $max_requests - $token_left;