rename cpu_info -> info

This commit is contained in:
Doug MacEachern 2008-04-11 17:54:08 +00:00
parent 51b607866f
commit d895adc73e
1 changed files with 5 additions and 5 deletions

View File

@ -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);