Skip to content

fix cpu fetching code for leopard and tiger#387

Merged
hykilpikonna merged 2 commits intohykilpikonna:masterfrom
Un1q32:master
Feb 15, 2025
Merged

fix cpu fetching code for leopard and tiger#387
hykilpikonna merged 2 commits intohykilpikonna:masterfrom
Un1q32:master

Conversation

@Un1q32
Copy link
Contributor

@Un1q32 Un1q32 commented Feb 2, 2025

Description

Fixed CPU string fetching code, I'm not sure why it was setup to find the string "CPU Type", as neither Tiger or Leopard use that

Removed CPU Speed fetching code. It was also broken, looking for "CPU Speed" instead of "Processor Speed", and could be fixed, but fixing it would sometimes make it get a number with a decimal like 3.3 GHz, which broke some code later on that expected it to be an integer, so I figured it was better not to have it.

The cores bit did nothing, as it gets overwritten by the bit right below it that gets the number of cores with sysctl commands.

Additional context

Also removed the bit that removes Core from CPU info, as it turned my Intel Core 2 Duo into an Intel 2 Duo.

@hykilpikonna hykilpikonna merged commit 5c24bd4 into hykilpikonna:master Feb 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants