Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Sep 2012 12:37:30 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240007 - head/sys/netinet
Message-ID:  <201209021237.q82CbUJB002554@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Sun Sep  2 12:37:30 2012
New Revision: 240007
URL: http://svn.freebsd.org/changeset/base/240007

Log:
  Fix a typo which results in RTT to be off by a factor of 10, if the RTT is
  larger than 1 second.
  
  MFC after:	3 days

Modified:
  head/sys/netinet/sctputil.c

Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c	Sun Sep  2 11:44:30 2012	(r240006)
+++ head/sys/netinet/sctputil.c	Sun Sep  2 12:37:30 2012	(r240007)
@@ -2384,7 +2384,7 @@ sctp_calculate_rto(struct sctp_tcb *stcb
 	}
 	timevalsub(&now, old);
 	/* store the current RTT in us */
-	net->rtt = (uint64_t) 10000000 *(uint64_t) now.tv_sec +
+	net->rtt = (uint64_t) 1000000 *(uint64_t) now.tv_sec +
 	         (uint64_t) now.tv_usec;
 
 	/* computer rtt in ms */



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