Skip to content

Commit

Permalink
Merge pull request #22
Browse files Browse the repository at this point in the history
FIX SetMaxCpuUsage message constructor param
  • Loading branch information
hschimpf authored Nov 1, 2023
2 parents 37e2da8 + efc1103 commit b1125d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Internals/Commands/Runner/SetMaxCpuUsage.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
final class SetMaxCpuUsage extends ParallelCommandMessage {

public function __construct(int $max, bool $percentage = false) {
public function __construct(int | float $max, bool $percentage = false) {
parent::__construct(sprintf('set_max_cpu_%s_usage', $percentage ? 'percentage' : 'count'), [ $max ]);
}

Expand Down

0 comments on commit b1125d6

Please sign in to comment.