From d895adc73edb985e563a5566535f6e05db513d91 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 11 Apr 2008 17:54:08 +0000 Subject: [PATCH] rename cpu_info -> info --- src/os/linux/linux_sigar.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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);