mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240007
@ -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…
Reference in New Issue
Block a user