adjust cpu model name

This commit is contained in:
Doug MacEachern 2004-07-02 01:27:04 +00:00
parent 77b2883e1e
commit 2168c3b578
1 changed files with 3 additions and 0 deletions

View File

@ -299,6 +299,9 @@ int sigar_cpu_info_get(sigar_t *sigar, sigar_cpu_info_t *info)
SIGAR_SSTRCPY(info->model, "x86"); SIGAR_SSTRCPY(info->model, "x86");
} }
} }
else {
sigar_cpu_model_adjust(sigar, info);
}
size = sizeof(info->mhz); // == sizeof(DWORD) size = sizeof(info->mhz); // == sizeof(DWORD)
if (RegQueryValueEx(cpu, "~MHz", NULL, NULL, if (RegQueryValueEx(cpu, "~MHz", NULL, NULL,