convert cpu_info.cache_size to KB

This commit is contained in:
Doug MacEachern 2005-12-02 04:56:57 +00:00
parent b228641334
commit 82e6f77d0e
1 changed files with 3 additions and 0 deletions

View File

@ -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