track timepoint of last update

This commit is contained in:
Green Sky 2024-05-27 11:31:36 +02:00
parent 57575330dd
commit a4201f4407
No known key found for this signature in database
2 changed files with 7 additions and 0 deletions

View File

@ -114,6 +114,8 @@ void FlowOnly::onSent(SeqIDType seq, size_t data_size) {
);
_in_flight_bytes += data_size + SEGMENT_OVERHEAD;
//_recently_sent_bytes += data_size + SEGMENT_OVERHEAD;
_time_point_last_update = getTimeNow();
}
void FlowOnly::onAck(std::vector<SeqIDType> seqs) {
@ -124,6 +126,8 @@ void FlowOnly::onAck(std::vector<SeqIDType> seqs) {
const auto now {getTimeNow()};
_time_point_last_update = now;
// first seq in seqs is the actual value, all extra are for redundency
{ // skip in ack is congestion event
// 1. look at primary ack of packet

View File

@ -38,6 +38,9 @@ struct FlowOnly : public CCAI {
clock::time_point _time_start_offset;
// used to clamp growth rate in the void
double _time_point_last_update {getTimeNow()};
protected:
// make values relative to algo start for readability (and precision)
// get timestamp in seconds