use sigar->mach_port

This commit is contained in:
Doug MacEachern 2006-01-05 19:53:36 +00:00
parent b32733daaa
commit 4717f7c8b4
1 changed files with 1 additions and 1 deletions

View File

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