Skip to content

Commit

Permalink
always pass microseconds to usleep as integers
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Dec 2, 2023
1 parent 45261e1 commit 8fa2217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pipes/WindowsPipes.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function readAndWrite(bool $blocking, bool $close = false): array
if ($w) {
@stream_select($r, $w, $e, 0, Process::TIMEOUT_PRECISION * 1E6);
} elseif ($this->fileHandles) {
usleep(Process::TIMEOUT_PRECISION * 1E6);
usleep((int) (Process::TIMEOUT_PRECISION * 1E6));
}
}
foreach ($this->fileHandles as $type => $fileHandle) {
Expand Down

0 comments on commit 8fa2217

Please sign in to comment.