mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
exclude resent stream packets from RTT calculations
This commit is contained in:
parent
161ff3579b
commit
e7ff15c573
2 changed files with 13 additions and 10 deletions
|
@ -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; };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue