track timepoint of last update

This commit is contained in:
2024-05-27 11:31:36 +02:00
parent 57575330dd
commit a4201f4407
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