exclude resent stream packets from RTT calculations

This commit is contained in:
Vort 2024-03-16 19:29:47 +02:00
parent 161ff3579b
commit e7ff15c573
2 changed files with 13 additions and 10 deletions

View file

@ -71,8 +71,9 @@ namespace stream
size_t len, offset;
uint8_t buf[MAX_PACKET_SIZE];
uint64_t sendTime;
bool resent;
Packet (): len (0), offset (0), sendTime (0) {};
Packet (): len (0), offset (0), sendTime (0), resent (false) {};
uint8_t * GetBuffer () { return buf + offset; };
size_t GetLength () const { return len - offset; };