Skip to content

Commit

Permalink
use the same default cpu count placeholder for FreeBSD and Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Malex14 <[email protected]>
  • Loading branch information
Malex14 committed Nov 25, 2024
1 parent c04c3a5 commit eebc704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OperatingSystems/FreeBSD.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function getCpuName(): string {
}

public function getCpuCount(): int {
$numCpu = 1; // this should be a save default
$numCpu = -1;

try {
$numCpu = intval($this->executeCommand('sysctl -n hw.ncpu')); //TODO: this should be tested if it actually works on FreeBSD
Expand Down

0 comments on commit eebc704

Please sign in to comment.