From 3521d8bc724d6e578081b9b37458a4942629bfe1 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 13 Feb 2005 05:32:30 +0000 Subject: [PATCH] fix cpu mhz --- src/os/darwin/darwin_sigar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 040ea99c..d075e6c0 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -889,7 +889,7 @@ int sigar_cpu_info_list_get(sigar_t *sigar, size = sizeof(value); if (!sysctlbyname(CTL_HW_FREQ, &value, &size, NULL, 0)) { - mhz = value; + mhz = (int)(value / 1000000); } else { mhz = SIGAR_FIELD_NOTIMPL;