svn commit: r240007 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sun Sep 2 12:37:31 UTC 2012


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 */


More information about the svn-src-all mailing list