From eebc704ad200e5b26b6903adb2709c2f7e246190 Mon Sep 17 00:00:00 2001 From: Malex14 <39774812+Malex14@users.noreply.github.com> Date: Mon, 25 Nov 2024 21:26:15 +0100 Subject: [PATCH] use the same default cpu count placeholder for FreeBSD and Linux Signed-off-by: Malex14 <39774812+Malex14@users.noreply.github.com> --- lib/OperatingSystems/FreeBSD.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OperatingSystems/FreeBSD.php b/lib/OperatingSystems/FreeBSD.php index bf1b8153..90a1a507 100644 --- a/lib/OperatingSystems/FreeBSD.php +++ b/lib/OperatingSystems/FreeBSD.php @@ -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