small flow stuff and hs fix
This commit is contained in:
@@ -29,9 +29,8 @@ struct CUBIC : public FlowOnly {
|
||||
|
||||
float getWindow(void) const override;
|
||||
|
||||
// TODO: api for how much data we should send
|
||||
// take time since last sent into account
|
||||
// respect max_byterate_allowed
|
||||
// takes time since last sent into account
|
||||
// respects max_byterate_allowed
|
||||
int64_t canSend(float time_delta) override;
|
||||
};
|
||||
|
||||
|
@@ -33,7 +33,7 @@ void FlowOnly::updateWindow(void) {
|
||||
|
||||
void FlowOnly::updateCongestion(void) {
|
||||
updateWindow();
|
||||
const auto tmp_window = getWindow();
|
||||
const auto tmp_window = FlowOnly::getWindow();
|
||||
// packet window * 0.3
|
||||
// but atleast 4
|
||||
int32_t max_consecutive_events = std::clamp<int32_t>(
|
||||
|
@@ -52,7 +52,7 @@ struct FlowOnly : public CCAI {
|
||||
float getCurrentDelay(void) const override;
|
||||
|
||||
// call updateWindow() to update this value
|
||||
float getWindow(void) const override;
|
||||
virtual float getWindow(void) const override;
|
||||
|
||||
void addRTT(float new_delay);
|
||||
|
||||
|
Reference in New Issue
Block a user