add and switch to flow only

This commit is contained in:
2023-08-29 18:21:12 +02:00
parent f460d7b4a5
commit d957f9496a
10 changed files with 235 additions and 14 deletions

View File

@@ -31,8 +31,8 @@ struct CUBIC : public CCAI {
// make values relative to algo start for readability (and precision)
// get timestamp in seconds
float getTimeNow(void) const {
return std::chrono::duration<float>{clock::now() - _time_start_offset}.count();
double getTimeNow(void) const {
return std::chrono::duration<double>{clock::now() - _time_start_offset}.count();
}
// moving avg over the last few delay samples
@@ -47,7 +47,7 @@ struct CUBIC : public CCAI {
// TODO: api for how much data we should send
// take time since last sent into account
// respect max_byterate_allowed
size_t canSend(void) const override;
size_t canSend(void) override;
// get the list of timed out seq_ids
std::vector<SeqIDType> getTimeouts(void) const override;