File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
22
23
23
/* CUBIC parameters x10 */
24
24
#define NGX_QUIC_CUBIC_BETA 7
25
- #define MGX_QUIC_CUBIC_C 4
25
+ #define NGX_QUIC_CUBIC_C 4
26
26
27
27
28
28
/* send time of ACK'ed packets */
@@ -483,7 +483,7 @@ ngx_quic_congestion_cubic(ngx_connection_t *c)
483
483
* w_cubic = C * (t_msec / 1000) ^ 3 * mtu + w_max
484
484
*/
485
485
486
- cc = 10000000000ll / (int64_t ) cg -> mtu / MGX_QUIC_CUBIC_C ;
486
+ cc = 10000000000ll / (int64_t ) cg -> mtu / NGX_QUIC_CUBIC_C ;
487
487
w = t * t * t / cc + (int64_t ) cg -> w_max ;
488
488
489
489
if (w > NGX_MAX_SIZE_T_VALUE ) {
@@ -945,7 +945,7 @@ ngx_quic_congestion_cubic_time(ngx_connection_t *c)
945
945
return 0 ;
946
946
}
947
947
948
- cc = 10000000000ll / (int64_t ) cg -> mtu / MGX_QUIC_CUBIC_C ;
948
+ cc = 10000000000ll / (int64_t ) cg -> mtu / NGX_QUIC_CUBIC_C ;
949
949
v = (int64_t ) (cg -> w_max - cg -> window ) * cc ;
950
950
951
951
/*
You can’t perform that action at this time.
0 commit comments