track timepoint of last update
This commit is contained in:
parent
57575330dd
commit
a4201f4407
@ -114,6 +114,8 @@ void FlowOnly::onSent(SeqIDType seq, size_t data_size) {
|
|||||||
);
|
);
|
||||||
_in_flight_bytes += data_size + SEGMENT_OVERHEAD;
|
_in_flight_bytes += data_size + SEGMENT_OVERHEAD;
|
||||||
//_recently_sent_bytes += data_size + SEGMENT_OVERHEAD;
|
//_recently_sent_bytes += data_size + SEGMENT_OVERHEAD;
|
||||||
|
|
||||||
|
_time_point_last_update = getTimeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FlowOnly::onAck(std::vector<SeqIDType> seqs) {
|
void FlowOnly::onAck(std::vector<SeqIDType> seqs) {
|
||||||
@ -124,6 +126,8 @@ void FlowOnly::onAck(std::vector<SeqIDType> seqs) {
|
|||||||
|
|
||||||
const auto now {getTimeNow()};
|
const auto now {getTimeNow()};
|
||||||
|
|
||||||
|
_time_point_last_update = now;
|
||||||
|
|
||||||
// first seq in seqs is the actual value, all extra are for redundency
|
// first seq in seqs is the actual value, all extra are for redundency
|
||||||
{ // skip in ack is congestion event
|
{ // skip in ack is congestion event
|
||||||
// 1. look at primary ack of packet
|
// 1. look at primary ack of packet
|
||||||
|
@ -38,6 +38,9 @@ struct FlowOnly : public CCAI {
|
|||||||
|
|
||||||
clock::time_point _time_start_offset;
|
clock::time_point _time_start_offset;
|
||||||
|
|
||||||
|
// used to clamp growth rate in the void
|
||||||
|
double _time_point_last_update {getTimeNow()};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// make values relative to algo start for readability (and precision)
|
// make values relative to algo start for readability (and precision)
|
||||||
// get timestamp in seconds
|
// get timestamp in seconds
|
||||||
|
Loading…
Reference in New Issue
Block a user