cpu model/vendor fixups

This commit is contained in:
Doug MacEachern 2004-07-09 21:02:34 +00:00
parent c51d4f15d4
commit ca3ecc05f5
1 changed files with 5 additions and 5 deletions

View File

@ -997,10 +997,13 @@ int sigar_cpu_infos_get(sigar_t *sigar,
if (strEQ(info->model, "i386")) { if (strEQ(info->model, "i386")) {
/* XXX assuming Intel on x86 */ /* XXX assuming Intel on x86 */
SIGAR_SSTRCPY(info->vendor, "Intel"); SIGAR_SSTRCPY(info->vendor, "Intel");
SIGAR_SSTRCPY(info->model, "x86");
} }
else { else {
/* sparc */ /* sparc */
SIGAR_SSTRCPY(info->vendor, "Sun Microsystems"); SIGAR_SSTRCPY(info->vendor, "Sun");
/* s/sparc/Sparc/ */
info->model[0] = toupper(info->model[0]);
} }
info->mhz = stats.pi_clock; info->mhz = stats.pi_clock;
@ -1357,7 +1360,4 @@ int sigar_net_interface_stat_get(sigar_t *sigar, const char *name,
int sigar_net_connection_list_get(sigar_t *sigar, int sigar_net_connection_list_get(sigar_t *sigar,
sigar_net_connection_list_t *connlist, sigar_net_connection_list_t *connlist,
int flags) int flags
{
return SIGAR_ENOTIMPL;
}