svn commit: r247982 - stable/8/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Thu Mar 7 23:58:19 UTC 2013


Author: tuexen
Date: Thu Mar  7 23:58:18 2013
New Revision: 247982
URL: http://svnweb.freebsd.org/changeset/base/247982

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

Modified:
  stable/8/sys/netinet/sctputil.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/netinet/   (props changed)

Modified: stable/8/sys/netinet/sctputil.c
==============================================================================
--- stable/8/sys/netinet/sctputil.c	Thu Mar  7 23:55:42 2013	(r247981)
+++ stable/8/sys/netinet/sctputil.c	Thu Mar  7 23:58:18 2013	(r247982)
@@ -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