Page MenuHomeFreeBSD

D40267.diff
No OneTemporary

D40267.diff

diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -4660,8 +4660,9 @@
/*
* The user wants useconds and internally
* its kept in ticks, convert to useconds.
+ * Put unshift at last improves precision.
*/
- srtt = TICKS_2_USEC(srtt);
+ srtt = TICKS_2_USEC(tp->t_srtt) >> TCP_RTT_SHIFT;
} else if (granularity == TCP_TMR_GRANULARITY_TICKS) {
/*
* The user wants ticks and internally its

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 5:38 AM (22 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14731396
Default Alt Text
D40267.diff (485 B)

Event Timeline