summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_hostcache.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2004-08-11 10:12:16 +0000
committerandre <andre@FreeBSD.org>2004-08-11 10:12:16 +0000
commit0ad10fdbdfd72ece9f8c0b76a5fc5a9a48bdda39 (patch)
tree8c9be65361cd8c54c4f203338715ceed67e08053 /sys/netinet/tcp_hostcache.c
parent94d764228587c861fc783fbf41f8f4654e8ecf70 (diff)
downloadFreeBSD-src-0ad10fdbdfd72ece9f8c0b76a5fc5a9a48bdda39.zip
FreeBSD-src-0ad10fdbdfd72ece9f8c0b76a5fc5a9a48bdda39.tar.gz
Correct the displayed bandwidth calculation for a readout via sysctl. The
saved value does not have to be scaled with HZ; it is already in bytes per second. Only the multiply by eight remains to show bits per second (bps).
Diffstat (limited to 'sys/netinet/tcp_hostcache.c')
-rw-r--r--sys/netinet/tcp_hostcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_hostcache.c b/sys/netinet/tcp_hostcache.c
index 53fc7d9..cc81d76 100644
--- a/sys/netinet/tcp_hostcache.c
+++ b/sys/netinet/tcp_hostcache.c
@@ -676,7 +676,7 @@ sysctl_tcp_hc_list(SYSCTL_HANDLER_ARGS)
(RTM_RTTUNIT / (hz * TCP_RTT_SCALE))),
msec(hc_entry->rmx_rttvar *
(RTM_RTTUNIT / (hz * TCP_RTT_SCALE))),
- hc_entry->rmx_bandwidth * hz * 8,
+ hc_entry->rmx_bandwidth * 8,
hc_entry->rmx_cwnd,
hc_entry->rmx_sendpipe,
hc_entry->rmx_recvpipe,
OpenPOWER on IntegriCloud