prefer ProcessorNameString to Indentifier for cpu model name
This commit is contained in:
parent
4df7191361
commit
77b2883e1e
|
@ -288,11 +288,16 @@ int sigar_cpu_info_get(sigar_t *sigar, sigar_cpu_info_t *info)
|
|||
}
|
||||
}
|
||||
|
||||
size = sizeof(info->model);
|
||||
if (RegQueryValueEx(cpu, "ProcessorNameString", NULL, NULL,
|
||||
(LPVOID)&info->model, &size))
|
||||
{
|
||||
size = sizeof(info->model);
|
||||
if (RegQueryValueEx(cpu, "Identifier", NULL, NULL,
|
||||
(LPVOID)&info->model, &size))
|
||||
{
|
||||
SIGAR_SSTRCPY(info->vendor, "x86");
|
||||
SIGAR_SSTRCPY(info->model, "x86");
|
||||
}
|
||||
}
|
||||
|
||||
size = sizeof(info->mhz); // == sizeof(DWORD)
|
||||
|
|
Loading…
Reference in New Issue