use sigar_cpu_mhz_from_model

This commit is contained in:
Doug MacEachern 2006-01-03 21:48:30 +00:00
parent 8ce111b16c
commit 2f574c725c

View File

@ -1456,6 +1456,11 @@ int sigar_cpu_info_list_get(sigar_t *sigar,
}
}
if (mhz == SIGAR_FIELD_NOTIMPL) {
/* freebsd4 */
mhz = sigar_cpu_mhz_from_model(model);
}
if ((ptr = strchr(model, ' '))) {
*ptr = '\0';
if (strstr(model, "Intel")) {