aix+hpux cpu_info sockets+cores

This commit is contained in:
Doug MacEachern 2008-04-09 05:21:46 +00:00
parent 0983884395
commit 277cf2e68e
2 changed files with 6 additions and 0 deletions

View File

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

View File

@ -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*/