We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63a796b commit 871cdeaCopy full SHA for 871cdea
net/ipv4/tcp_htcp.c
@@ -185,7 +185,7 @@ static inline void htcp_alpha_update(struct htcp *ca)
185
u32 scale = (HZ << 3) / (10 * minRTT);
186
187
/* clamping ratio to interval [0.5,10]<<3 */
188
- scale = min(max(scale, 1U << 2), 10U << 3);
+ scale = clamp(scale, 1U << 2, 10U << 3);
189
factor = (factor << 3) / scale;
190
if (!factor)
191
factor = 1;
0 commit comments