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
This commit is contained in:
Michael Tuexen 2012-09-02 12:37:30 +00:00
parent 94355cfdfd
commit 81eb4e6351

View File

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