Skip to content

Commit

Permalink
Update Connection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
stephangroen committed Oct 20, 2021
1 parent b36aaa0 commit 45e476b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Picqer/Financials/Exact/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -885,9 +885,9 @@ protected function waitIfMinutelyRateLimitHit()
if (! $this->waitOnMinutelyRateLimitHit) {
return;
}

$minutelyReset = $this->getMinutelyLimitReset();

if ($this->getMinutelyLimitRemaining() === 0 && $minutelyReset) {
// add a second for rounding differences
$resetsInSeconds = (($minutelyReset / 1000) - time()) + 1;
Expand Down

0 comments on commit 45e476b

Please sign in to comment.