adjust cpu model name
This commit is contained in:
parent
77b2883e1e
commit
2168c3b578
|
@ -299,6 +299,9 @@ int sigar_cpu_info_get(sigar_t *sigar, sigar_cpu_info_t *info)
|
||||||
SIGAR_SSTRCPY(info->model, "x86");
|
SIGAR_SSTRCPY(info->model, "x86");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
sigar_cpu_model_adjust(sigar, info);
|
||||||
|
}
|
||||||
|
|
||||||
size = sizeof(info->mhz); // == sizeof(DWORD)
|
size = sizeof(info->mhz); // == sizeof(DWORD)
|
||||||
if (RegQueryValueEx(cpu, "~MHz", NULL, NULL,
|
if (RegQueryValueEx(cpu, "~MHz", NULL, NULL,
|
||||||
|
|
Loading…
Reference in New Issue