mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[X86] Avoid checking /sys directory in macOS to find frequency
This commit is contained in:
@@ -286,7 +286,7 @@ void add_apic_to_array(uint32_t apic, uint32_t* apic_ids, int n) {
|
||||
bool fill_apic_ids(uint32_t* apic_ids, int n, bool x2apic_id) {
|
||||
#ifdef __APPLE__
|
||||
// macOS extremely dirty approach...
|
||||
printf("cpufetch is computing APIC IDs, please wait...");
|
||||
printf("cpufetch is computing APIC IDs, please wait...\n");
|
||||
bool end = false;
|
||||
uint32_t apic;
|
||||
for(int i=0; i < n; i++) apic_ids[i] = (uint32_t) -1;
|
||||
|
||||
Reference in New Issue
Block a user