fix cpu mhz

This commit is contained in:
Doug MacEachern 2005-02-13 05:32:30 +00:00
parent a50c77a330
commit 3521d8bc72
1 changed files with 1 additions and 1 deletions

View File

@ -889,7 +889,7 @@ int sigar_cpu_info_list_get(sigar_t *sigar,
size = sizeof(value); size = sizeof(value);
if (!sysctlbyname(CTL_HW_FREQ, &value, &size, NULL, 0)) { if (!sysctlbyname(CTL_HW_FREQ, &value, &size, NULL, 0)) {
mhz = value; mhz = (int)(value / 1000000);
} }
else { else {
mhz = SIGAR_FIELD_NOTIMPL; mhz = SIGAR_FIELD_NOTIMPL;