also remove 'Authentic' if vendor is AMD
This commit is contained in:
parent
cb27ce6b1f
commit
300094d65d
|
@ -282,6 +282,11 @@ int sigar_cpu_info_get(sigar_t *sigar, sigar_cpu_info_t *info)
|
||||||
{
|
{
|
||||||
SIGAR_SSTRCPY(info->vendor, "Intel");
|
SIGAR_SSTRCPY(info->vendor, "Intel");
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
if (strEQ(info->vendor, "AuthenticAMD")) {
|
||||||
|
SIGAR_SSTRCPY(info->vendor, "AMD");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
size = sizeof(info->model);
|
size = sizeof(info->model);
|
||||||
if (RegQueryValueEx(cpu, "Identifier", NULL, NULL,
|
if (RegQueryValueEx(cpu, "Identifier", NULL, NULL,
|
||||||
|
|
Loading…
Reference in New Issue