aboutsummaryrefslogtreecommitdiff
path: root/src/event/quic/ngx_event_quic_ack.c
diff options
context:
space:
mode:
authornandsky <lishu.zy@alibaba-inc.com>2025-04-18 11:45:12 +0800
committerpluknet <pluknet@nginx.com>2025-04-23 11:53:51 +0400
commit9785db9bd504ff25c1d84857505e6546fc04ae68 (patch)
tree2d197d32013e237c6d12eb261a39d5ac7fb58193 /src/event/quic/ngx_event_quic_ack.c
parent020b1db7eb187d4a9a5f1d6154c664a463473b36 (diff)
downloadnginx-9785db9bd504ff25c1d84857505e6546fc04ae68.tar.gz
nginx-9785db9bd504ff25c1d84857505e6546fc04ae68.zip
QUIC: fixed a typo.
Diffstat (limited to 'src/event/quic/ngx_event_quic_ack.c')
-rw-r--r--src/event/quic/ngx_event_quic_ack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/event/quic/ngx_event_quic_ack.c b/src/event/quic/ngx_event_quic_ack.c
index b8b72e943..c7fd96c2c 100644
--- a/src/event/quic/ngx_event_quic_ack.c
+++ b/src/event/quic/ngx_event_quic_ack.c
@@ -22,7 +22,7 @@
/* CUBIC parameters x10 */
#define NGX_QUIC_CUBIC_BETA 7
-#define MGX_QUIC_CUBIC_C 4
+#define NGX_QUIC_CUBIC_C 4
/* send time of ACK'ed packets */
@@ -483,7 +483,7 @@ ngx_quic_congestion_cubic(ngx_connection_t *c)
* w_cubic = C * (t_msec / 1000) ^ 3 * mtu + w_max
*/
- cc = 10000000000ll / (int64_t) cg->mtu / MGX_QUIC_CUBIC_C;
+ cc = 10000000000ll / (int64_t) cg->mtu / NGX_QUIC_CUBIC_C;
w = t * t * t / cc + (int64_t) cg->w_max;
if (w > NGX_MAX_SIZE_T_VALUE) {
@@ -945,7 +945,7 @@ ngx_quic_congestion_cubic_time(ngx_connection_t *c)
return 0;
}
- cc = 10000000000ll / (int64_t) cg->mtu / MGX_QUIC_CUBIC_C;
+ cc = 10000000000ll / (int64_t) cg->mtu / NGX_QUIC_CUBIC_C;
v = (int64_t) (cg->w_max - cg->window) * cc;
/*