change cpu_info vendor to 'Intel' instead of 'GenuineIntel'

This commit is contained in:
Doug MacEachern 2004-06-23 01:00:51 +00:00
parent 903fabc3e4
commit cb27ce6b1f
1 changed files with 2 additions and 1 deletions

View File

@ -277,7 +277,8 @@ int sigar_cpu_info_get(sigar_t *sigar, sigar_cpu_info_t *info)
size = sizeof(info->vendor); size = sizeof(info->vendor);
if (RegQueryValueEx(cpu, "VendorIdentifier", NULL, NULL, if (RegQueryValueEx(cpu, "VendorIdentifier", NULL, NULL,
(LPVOID)&info->vendor, &size)) (LPVOID)&info->vendor, &size) ||
strEQ(info->vendor, "GenuineIntel"))
{ {
SIGAR_SSTRCPY(info->vendor, "Intel"); SIGAR_SSTRCPY(info->vendor, "Intel");
} }