Skip to content

Commit 9785db9

Browse files
nandskypluknet
authored andcommitted
QUIC: fixed a typo.
1 parent 020b1db commit 9785db9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/event/quic/ngx_event_quic_ack.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
/* CUBIC parameters x10 */
2424
#define NGX_QUIC_CUBIC_BETA 7
25-
#define MGX_QUIC_CUBIC_C 4
25+
#define NGX_QUIC_CUBIC_C 4
2626

2727

2828
/* send time of ACK'ed packets */
@@ -483,7 +483,7 @@ ngx_quic_congestion_cubic(ngx_connection_t *c)
483483
* w_cubic = C * (t_msec / 1000) ^ 3 * mtu + w_max
484484
*/
485485

486-
cc = 10000000000ll / (int64_t) cg->mtu / MGX_QUIC_CUBIC_C;
486+
cc = 10000000000ll / (int64_t) cg->mtu / NGX_QUIC_CUBIC_C;
487487
w = t * t * t / cc + (int64_t) cg->w_max;
488488

489489
if (w > NGX_MAX_SIZE_T_VALUE) {
@@ -945,7 +945,7 @@ ngx_quic_congestion_cubic_time(ngx_connection_t *c)
945945
return 0;
946946
}
947947

948-
cc = 10000000000ll / (int64_t) cg->mtu / MGX_QUIC_CUBIC_C;
948+
cc = 10000000000ll / (int64_t) cg->mtu / NGX_QUIC_CUBIC_C;
949949
v = (int64_t) (cg->w_max - cg->window) * cc;
950950

951951
/*

0 commit comments

Comments
 (0)