diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 93e34716..409d7409 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -1404,6 +1404,9 @@ int sigar_cpu_info_list_get(sigar_t *sigar, if (sysctl(mib, NMIB(mib), &cache_size, &size, NULL, 0) < 0) { cache_size = SIGAR_FIELD_NOTIMPL; } + else { + cache_size /= 1024; /* convert to KB */ + } } #endif