fix cpu vendor+model on hpux ia64

This commit is contained in:
Doug MacEachern 2006-08-05 00:57:42 +00:00
parent 3c4d18e04e
commit 548c0edd30
1 changed files with 5 additions and 0 deletions

View File

@ -662,8 +662,13 @@ int sigar_cpu_info_list_get(sigar_t *sigar,
info = &cpu_infos->data[cpu_infos->number++];
#ifdef __ia64__
SIGAR_SSTRCPY(info->vendor, "Intel"); /*XXX*/
SIGAR_SSTRCPY(info->model, "Itanium"); /*XXX*/
#else
SIGAR_SSTRCPY(info->vendor, "HP"); /*XXX*/
SIGAR_SSTRCPY(info->model, "PA RISC"); /*XXX*/
#endif
info->mhz = sigar->ticks * proc.psp_iticksperclktick / 1000000;
info->cache_size = SIGAR_FIELD_NOTIMPL; /*XXX*/
}