use sigar->mach_port
This commit is contained in:
parent
b32733daaa
commit
4717f7c8b4
|
@ -503,7 +503,7 @@ int sigar_cpu_list_get(sigar_t *sigar, sigar_cpu_list_t *cpulist)
|
|||
processor_cpu_load_info_data_t *cpuload;
|
||||
natural_t i, ncpu;
|
||||
|
||||
status = host_processor_info(mach_host_self(),
|
||||
status = host_processor_info(sigar->mach_port,
|
||||
PROCESSOR_CPU_LOAD_INFO,
|
||||
&ncpu,
|
||||
(processor_info_array_t*)&cpuload,
|
||||
|
|
Loading…
Reference in New Issue