Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
use the same default cpu count placeholder for FreeBSD and Linux
Signed-off-by: Malex14 <[email protected]>
  • Loading branch information
Malex14 committed Nov 25, 2024
commit eebc704ad200e5b26b6903adb2709c2f7e246190
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That yields the expected result for my cpu.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok 👍 , then I will remove the comment

Expand Down
Loading