summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctputil.c
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2012-09-02 12:37:30 +0000
committertuexen <tuexen@FreeBSD.org>2012-09-02 12:37:30 +0000
commit03552c901bb60465520c357b43e38d9336793eb2 (patch)
tree0889927f61eac79a71328459eaf3580819c6e92e /sys/netinet/sctputil.c
parentb328cce0e3c98aeb1847de0d9ff290b2c5632d44 (diff)
downloadFreeBSD-src-03552c901bb60465520c357b43e38d9336793eb2.zip
FreeBSD-src-03552c901bb60465520c357b43e38d9336793eb2.tar.gz
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
Diffstat (limited to 'sys/netinet/sctputil.c')
-rw-r--r--sys/netinet/sctputil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c
index d8ce16e..1083a82 100644
--- a/sys/netinet/sctputil.c
+++ b/sys/netinet/sctputil.c
@@ -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 */
OpenPOWER on IntegriCloud