Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102960453
D40267.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
485 B
Referenced Files
None
Subscribers
None
D40267.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D40267: tcp: fix a bug where unshifting should be put last in tcp_get_srtt()
Attached
Detach File
Event Timeline
Log In to Comment