mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[v0.97] Fix compilation in macOS
This commit is contained in:
@@ -887,7 +887,6 @@ void print_debug(struct cpuInfo* cpu) {
|
||||
free_cpuinfo_struct(cpu);
|
||||
}
|
||||
|
||||
// TODO: Fix on macOS
|
||||
// TODO: Query HV and Xeon Phi levels
|
||||
void print_raw(struct cpuInfo* cpu) {
|
||||
uint32_t eax;
|
||||
@@ -899,10 +898,12 @@ void print_raw(struct cpuInfo* cpu) {
|
||||
printf("--------------------------------------------------------------\n");
|
||||
|
||||
for(int c=0; c < cpu->topo->total_cores; c++) {
|
||||
#ifndef __APPLE__
|
||||
if(!bind_to_cpu(c)) {
|
||||
printErr("Failed binding to CPU %d", c);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
printf("CPU %d:\n", c);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user