Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166625294
D35505.id106979.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
451 B
Referenced Files
None
Subscribers
None
D35505.id106979.diff
View Options
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -339,7 +339,7 @@
/*
* Compute goodput in bits per millisecond.
*/
- gput = (((int64_t)(th->th_ack - tp->gput_seq)) << 3) /
+ gput = (((int64_t)SEQ_SUB(th->th_ack, tp->gput_seq)) << 3) /
max(1, tcp_ts_getticks() - tp->gput_ts);
stats_voi_update_abs_u32(tp->t_stats, VOI_TCP_GPUT,
gput);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 15, 11:34 PM (9 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36806805
Default Alt Text
D35505.id106979.diff (451 B)
Attached To
Mode
D35505: tcp: Correctly compute the TCP goodput in bits per second by using SEQ_SUB().
Attached
Detach File
Event Timeline
Log In to Comment