aix+hpux cpu_info sockets+cores
This commit is contained in:
parent
0983884395
commit
277cf2e68e
|
@ -1987,6 +1987,9 @@ int sigar_cpu_info_list_get(sigar_t *sigar,
|
||||||
|
|
||||||
info = &cpu_infos->data[cpu_infos->number++];
|
info = &cpu_infos->data[cpu_infos->number++];
|
||||||
|
|
||||||
|
info->total_sockets = ncpu;
|
||||||
|
info->total_cores = ncpu;
|
||||||
|
|
||||||
info->cache_size = SIGAR_CPU_CACHE_SIZE;
|
info->cache_size = SIGAR_CPU_CACHE_SIZE;
|
||||||
|
|
||||||
info->mhz = sigar_get_cpu_mhz(sigar);
|
info->mhz = sigar_get_cpu_mhz(sigar);
|
||||||
|
|
|
@ -679,6 +679,9 @@ int sigar_cpu_info_list_get(sigar_t *sigar,
|
||||||
|
|
||||||
info = &cpu_infos->data[cpu_infos->number++];
|
info = &cpu_infos->data[cpu_infos->number++];
|
||||||
|
|
||||||
|
info->total_sockets = sigar->ncpu;
|
||||||
|
info->total_cores = sigar->ncpu;
|
||||||
|
|
||||||
#ifdef __ia64__
|
#ifdef __ia64__
|
||||||
SIGAR_SSTRCPY(info->vendor, "Intel"); /*XXX*/
|
SIGAR_SSTRCPY(info->vendor, "Intel"); /*XXX*/
|
||||||
SIGAR_SSTRCPY(info->model, "Itanium"); /*XXX*/
|
SIGAR_SSTRCPY(info->model, "Itanium"); /*XXX*/
|
||||||
|
|
Loading…
Reference in New Issue