mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[v1.01] Fix compiler warning
This commit is contained in:
@@ -472,7 +472,7 @@ bool get_cache_topology_amd(struct cpuInfo* cpu, struct topology* topo) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void get_topology_from_udev(struct cpuInfo* cpu, struct topology* topo) {
|
void get_topology_from_udev(struct topology* topo) {
|
||||||
// TODO: To be improved in the future
|
// TODO: To be improved in the future
|
||||||
topo->total_cores = get_ncores_from_cpuinfo();
|
topo->total_cores = get_ncores_from_cpuinfo();
|
||||||
topo->logical_cores = topo->total_cores;
|
topo->logical_cores = topo->total_cores;
|
||||||
@@ -515,7 +515,7 @@ struct topology* get_topology_info(struct cpuInfo* cpu, struct cache* cach) {
|
|||||||
if(!toporet) {
|
if(!toporet) {
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
printWarn("Failed to retrieve topology from APIC, using udev...\n");
|
printWarn("Failed to retrieve topology from APIC, using udev...\n");
|
||||||
get_topology_from_udev(cpu, topo);
|
get_topology_from_udev(topo);
|
||||||
#else
|
#else
|
||||||
printErr("Failed to retrieve topology from APIC, assumming default values...\n");
|
printErr("Failed to retrieve topology from APIC, assumming default values...\n");
|
||||||
topo->logical_cores = UNKNOWN_DATA;
|
topo->logical_cores = UNKNOWN_DATA;
|
||||||
|
|||||||
Reference in New Issue
Block a user