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 <39774812+Malex14@users.noreply.github.com>
  • Loading branch information
Malex14 authored and kesselb committed Dec 12, 2024
1 parent b5b1c69 commit 8dd505d
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 8dd505d

Please sign in to comment.