From 39e0b3b94863211a071b9c7a98f1da10b70a4a59 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 7 Mar 2006 01:35:56 +0000 Subject: [PATCH] add net_interface_stat.speed --- src/os/aix/aix_sigar.c | 2 +- src/os/hpux/hpux_sigar.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/aix/aix_sigar.c b/src/os/aix/aix_sigar.c index 4d312c50..06f54610 100644 --- a/src/os/aix/aix_sigar.c +++ b/src/os/aix/aix_sigar.c @@ -2140,7 +2140,7 @@ int sigar_net_interface_stat_get(sigar_t *sigar, const char *name, ifstat->tx_collisions = data.if_collisions; ifstat->tx_carrier = SIGAR_FIELD_NOTIMPL; - ifstat->speed = SIGAR_FIELD_NOTIMPL; + ifstat->speed = data.if_baudrate; return SIGAR_OK; } diff --git a/src/os/hpux/hpux_sigar.c b/src/os/hpux/hpux_sigar.c index b298d475..c807b4c1 100644 --- a/src/os/hpux/hpux_sigar.c +++ b/src/os/hpux/hpux_sigar.c @@ -786,7 +786,7 @@ int sigar_net_interface_stat_get(sigar_t *sigar, const char *name, ifstat->tx_collisions = SIGAR_FIELD_NOTIMPL; ifstat->tx_carrier = SIGAR_FIELD_NOTIMPL; - ifstat->speed = SIGAR_FIELD_NOTIMPL; + ifstat->speed = mib.ifSpeed; return SIGAR_OK; }