From a1ffc9132a4e710921788d4d8aba170de91dbf8d Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 1 Jul 2004 22:07:12 +0000 Subject: [PATCH] fixup cpu vendor --- src/os/linux/linux_sigar.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index 653eb360..75448a48 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -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':