fixup cpu vendor

This commit is contained in:
Doug MacEachern 2004-07-01 22:07:12 +00:00
parent b10a1a0c9e
commit a1ffc9132a
1 changed files with 6 additions and 0 deletions

View File

@ -1017,6 +1017,12 @@ static int get_cpu_info(sigar_cpu_info_t *info, FILE *fp, int *id)
case 'v':
if (strnEQ(ptr, "vendor_id", 9)) {
cpu_info_strcpy(ptr, info->vendor, sizeof(info->vendor));
if (strEQ(info->vendor, "GenuineIntel")) {
SIGAR_SSTRCPY(info->vendor, "Intel");
}
else if (strEQ(info->vendor, "AuthenticAMD")) {
SIGAR_SSTRCPY(info->vendor, "AMD");
}
}
break;
case 'm':