From 548c0edd30b817e4a7dd5d497e78de1ce8db0827 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 5 Aug 2006 00:57:42 +0000 Subject: [PATCH] fix cpu vendor+model on hpux ia64 --- src/os/hpux/hpux_sigar.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/os/hpux/hpux_sigar.c b/src/os/hpux/hpux_sigar.c index 40b5215b..7839587c 100644 --- a/src/os/hpux/hpux_sigar.c +++ b/src/os/hpux/hpux_sigar.c @@ -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*/ }