Skip to content

Commit

Permalink
FIX: Allow float value on SetMaxCpuUsage message
Browse files Browse the repository at this point in the history
  • Loading branch information
hschimpf committed Nov 1, 2023
1 parent 37e2da8 commit efc1103
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 efc1103

Please sign in to comment.