Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 2014 05:19:08 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273370 - head/cddl/lib/libdtrace
Message-ID:  <201410210519.s9L5J8iu034933@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Tue Oct 21 05:19:08 2014
New Revision: 273370
URL: https://svnweb.freebsd.org/changeset/base/273370

Log:
  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

Modified:
  head/cddl/lib/libdtrace/tcp.d

Modified: head/cddl/lib/libdtrace/tcp.d
==============================================================================
--- head/cddl/lib/libdtrace/tcp.d	Tue Oct 21 04:55:55 2014	(r273369)
+++ head/cddl/lib/libdtrace/tcp.d	Tue Oct 21 05:19:08 2014	(r273370)
@@ -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) */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410210519.s9L5J8iu034933>