Skip to content

Commit d1f577c

Browse files
CS
1 parent 389664f commit d1f577c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

classes/util/Loop.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ public function execute(callable $code)
8484
/*
8585
* Calculate max time remaining, don't sleep any longer than that.
8686
*/
87-
$usec_remaining = intval(($timeout - microtime(true)) * 1e6);
87+
$usecRemaining = intval(($timeout - microtime(true)) * 1e6);
8888

89-
if ($usec_remaining <= 0) {
89+
if ($usecRemaining <= 0) {
9090
/*
9191
* We've ran out of time.
9292
*/
9393
throw new TimeoutException("Timeout of $this->timeout seconds exceeded.");
9494
}
9595

96-
$usleep = min($usec_remaining, \random_int($min, $max));
96+
$usleep = min($usecRemaining, \random_int($min, $max));
9797

9898
usleep($usleep);
9999
}

0 commit comments

Comments
 (0)