changeset 9397:aba3924c04ba

QUIC: fixed a typo.
author nandsky <lishu.zy@alibaba-inc.com>
date Fri, 18 Apr 2025 11:45:12 +0800
parents 4abf4913f74f
children ef6ae1c5ebd3
files src/event/quic/ngx_event_quic_ack.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_ack.c	Tue Jan 14 11:11:28 2025 -0800
+++ b/src/event/quic/ngx_event_quic_ack.c	Fri Apr 18 11:45:12 2025 +0800
@@ -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 @@
      *   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 @@
         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;
 
     /*