convert cpu_info.cache_size to KB

This commit is contained in:
Doug MacEachern committed 2005-12-02 04:56:57 +00:00
1 parent b228641334
commit 82e6f77d0e
1 file changed
+3
+3
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