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).
This commit is contained in:
parent
94d7642285
commit
0ad10fdbdf
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user