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:
parent
94355cfdfd
commit
81eb4e6351
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user