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 */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to