From 2f574c725cd362660048b8791760f9da430a7650 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 3 Jan 2006 21:48:30 +0000 Subject: [PATCH] use sigar_cpu_mhz_from_model --- src/os/darwin/darwin_sigar.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index b0902b1b..35ddaf64 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -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")) {