switched to floating point time for bandwidth estimation in pqistreamer. Helps a lot RTTs since rounding to int prveviously caused packets to be delayed up to 1 sec (improvement by Jollavilette)

This commit is contained in:
csoler 2016-10-01 22:14:50 +02:00
parent 20397c38ec
commit c968490b43
2 changed files with 35 additions and 18 deletions

View file

@ -159,8 +159,8 @@ class pqistreamer: public PQInterface
int mCurrRead;
int mCurrSent;
time_t mCurrReadTS; // TS from which these are measured.
time_t mCurrSentTS;
double mCurrReadTS; // TS from which these are measured.
double mCurrSentTS;
time_t mAvgLastUpdate; // TS from which these are measured.
uint32_t mAvgReadCount;