also remove 'Authentic' if vendor is AMD

This commit is contained in:
Doug MacEachern 2004-06-23 01:10:40 +00:00
parent cb27ce6b1f
commit 300094d65d
1 changed files with 5 additions and 0 deletions

View File

@ -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,