svn commit: r240171 - releng/9.1/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Thu Sep 6 18:31:57 UTC 2012
Author: tuexen
Date: Thu Sep 6 18:31:56 2012
New Revision: 240171
URL: http://svn.freebsd.org/changeset/base/240171
Log:
MFC rr240007:
Fix a typo which results in RTT to be off by a factor of 10, if the RTT is
larger than 1 second.
Approved by: re (kib)
Modified:
releng/9.1/sys/netinet/sctputil.c
Directory Properties:
releng/9.1/sys/ (props changed)
Modified: releng/9.1/sys/netinet/sctputil.c
==============================================================================
--- releng/9.1/sys/netinet/sctputil.c Thu Sep 6 18:02:32 2012 (r240170)
+++ releng/9.1/sys/netinet/sctputil.c Thu Sep 6 18:31:56 2012 (r240171)
@@ -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