Skip to content

Commit 0a0f3e6

Browse files
committed
to be merged into BBR implementation (very minor modifs)
1 parent 4054d87 commit 0a0f3e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/quic_cc_bbr.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ static void bbr_init_pacing_rate(struct quic_cc *cc, struct bbr *bbr)
198198
{
199199
struct quic_cc_path *p = container_of(cc, struct quic_cc_path, cc);
200200
unsigned int srtt = p->loss.srtt;
201-
uint64_t nominal_bandwidth = 1000 * p->initial_wnd / (srtt ? srtt : 1);
202201

203-
bbr->pacing_rate = BBR_STARTUP_PACING_GAIN_MULT * nominal_bandwidth / BBR_GAIN_DIVI;
202+
bbr->pacing_rate = 1000 * p->initial_wnd * BBR_STARTUP_PACING_GAIN_MULT /
203+
BBR_GAIN_DIVI / (srtt ? srtt : 1);
204204
}
205205

206206
static void bbr_enter_startup(struct bbr *bbr)
@@ -1133,7 +1133,7 @@ struct quic_cc_drs *bbr_get_drs(struct quic_cc *cc)
11331133
return ((struct bbr *)quic_cc_priv(cc))->drs;
11341134
}
11351135

1136-
/* Return the pacing delay betwen burst of packets in nanoseconds */
1136+
/* Return the pacing delay between bursts of packets in nanoseconds */
11371137
unsigned long long bbr_pacing_delay_ns(const struct quic_cc *cc)
11381138
{
11391139
struct bbr *bbr = quic_cc_priv(cc);

0 commit comments

Comments
 (0)