add and switch to flow only
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user