diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index a3b353d6..ac2d1eed 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -1581,18 +1581,18 @@ int sigar_cpu_info_list_get(sigar_t *sigar, sigar_cpu_info_list_create(cpu_infos); while (get_cpu_info(sigar, &cpu_infos->data[cpu_infos->number], fp)) { - sigar_cpu_info_t *cpu_info; + sigar_cpu_info_t *info; if (core_rollup && (i++ % sigar->lcpu)) { continue; /* fold logical processors */ } - cpu_info = &cpu_infos->data[cpu_infos->number]; - get_cpuinfo_max_freq(cpu_info, cpu_infos->number); + info = &cpu_infos->data[cpu_infos->number]; + get_cpuinfo_max_freq(info, cpu_infos->number); - cpu_info->total_cores = sigar->ncpu; + info->total_cores = sigar->ncpu; info->cores_per_socket = sigar->lcpu; - cpu_info->total_sockets = sigar_cpu_socket_count(sigar); + info->total_sockets = sigar_cpu_socket_count(sigar); ++cpu_infos->number; SIGAR_CPU_INFO_LIST_GROW(cpu_infos);