Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111535
b: refs/heads/master
c: 8b67ad1
h: refs/heads/master
i:
  111533: 344dc5d
  111531: eabb314
  111527: 52916a9
  111519: 37e66c7
v: v3
  • Loading branch information
Gerrit Renker committed Sep 4, 2008
1 parent 5a71d9b commit 84f68ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d0c05fe4448db5cbdd886186860581f736f59ae9
refs/heads/master: 8b67ad12b04ef7bdf5d2b4de24fe5a609b26cf12
12 changes: 10 additions & 2 deletions trunk/net/dccp/ccids/lib/tfrc_equation.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,16 @@ u32 tfrc_calc_x(u16 s, u32 R, u32 p)

if (p <= TFRC_CALC_X_SPLIT) { /* 0.0000 < p <= 0.05 */
if (p < TFRC_SMALLEST_P) { /* 0.0000 < p < 0.0001 */
DCCP_WARN("Value of p (%d) below resolution. "
"Substituting %d\n", p, TFRC_SMALLEST_P);
/*
* In the congestion-avoidance phase p decays towards 0
* when there are no further losses, so this case is
* natural. Truncating to p_min = 0.01% means that the
* maximum achievable throughput is limited to about
* X_calc_max = 122.4 * s/RTT (see RFC 3448, 3.1); e.g.
* with s=1500 bytes, RTT=0.01 s: X_calc_max = 147 Mbps.
*/
tfrc_pr_debug("Value of p (%d) below resolution. "
"Substituting %d\n", p, TFRC_SMALLEST_P);
index = 0;
} else /* 0.0001 <= p <= 0.05 */
index = p/TFRC_SMALLEST_P - 1;
Expand Down

0 comments on commit 84f68ed

Please sign in to comment.