fix darwin compile
This commit is contained in:
parent
e0bc9674b5
commit
b228641334
|
@ -1399,7 +1399,7 @@ int sigar_cpu_info_list_get(sigar_t *sigar,
|
|||
|
||||
#ifdef DARWIN
|
||||
{
|
||||
int mib[] = { CTL_HW, HW_L2CACHESIZE }; / * in bytes */
|
||||
int mib[] = { CTL_HW, HW_L2CACHESIZE }; /* in bytes */
|
||||
size = sizeof(cache_size);
|
||||
if (sysctl(mib, NMIB(mib), &cache_size, &size, NULL, 0) < 0) {
|
||||
cache_size = SIGAR_FIELD_NOTIMPL;
|
||||
|
|
Loading…
Reference in New Issue