aboutsummaryrefslogtreecommitdiff
path: root/cddl/lib
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2014-10-21 05:19:08 +0000
committerMark Johnston <markj@FreeBSD.org>2014-10-21 05:19:08 +0000
commitfd8b318ab6682c83efc43ffa9c27a11ca94f10b1 (patch)
treed655a2b250164241d8c1074fa911d2cc23bfc270 /cddl/lib
parente9083b2dc571ed92325ae1a6ce6953da0b40fd46 (diff)
downloadsrc-fd8b318ab6682c83efc43ffa9c27a11ca94f10b1.tar.gz
src-fd8b318ab6682c83efc43ffa9c27a11ca94f10b1.zip
Correct the calculation of tcps_rto in the struct tcpcb -> tcpsinfo_t
translator. Submitted by: Grenville Armitage <garmitage@swin.edu.au> MFC after: 1 week
Notes
Notes: svn path=/head/; revision=273370
Diffstat (limited to 'cddl/lib')
-rw-r--r--cddl/lib/libdtrace/tcp.d2
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/lib/libdtrace/tcp.d b/cddl/lib/libdtrace/tcp.d
index bf687a264649..4b826f175572 100644
--- a/cddl/lib/libdtrace/tcp.d
+++ b/cddl/lib/libdtrace/tcp.d
@@ -198,7 +198,7 @@ translator tcpsinfo_t < struct tcpcb *p > {
tcps_cwnd_ssthresh = p == NULL ? -1 : p->snd_ssthresh;
tcps_sack_fack = p == NULL ? 0 : p->snd_fack;
tcps_sack_snxt = p == NULL ? 0 : p->sack_newdata;
- tcps_rto = p == NULL ? -1 : p->t_rxtcur / 1000; /* XXX */
+ tcps_rto = p == NULL ? -1 : (p->t_rxtcur * 1000) / `hz;
tcps_mss = p == NULL ? -1 : p->t_maxseg;
tcps_retransmit = p == NULL ? -1 : p->t_rxtshift > 0 ? 1 : 0;
tcps_srtt = p == NULL ? -1 : p->t_srtt; /* smoothed RTT in units of (TCP_RTT_SCALE*hz) */