svn commit: r240129 - stable/9/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Wed Sep 5 07:47:10 UTC 2012
Author: tuexen
Date: Wed Sep 5 07:47:09 2012
New Revision: 240129
URL: http://svn.freebsd.org/changeset/base/240129
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/9/sys/netinet/sctputil.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/netinet/sctputil.c
==============================================================================
--- stable/9/sys/netinet/sctputil.c Wed Sep 5 06:51:28 2012 (r240128)
+++ stable/9/sys/netinet/sctputil.c Wed Sep 5 07:47:09 2012 (r240129)
@@ -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-stable
mailing list