Improved bandwidth monitoring

Now measures over an entire update, which should hopefully give us more
stable values. They are still small values for fast networks though so
increase precision in the values we keep.
This commit is contained in:
Pierre Ossman
2020-05-21 11:31:40 +02:00
committed by Lauri Kasanen
parent a55f142c98
commit fde088ce65
2 changed files with 2 additions and 60 deletions

View File

@@ -45,11 +45,6 @@ namespace rdr {
void setBlockCallback(FdInStreamBlockCallback* blockCallback);
int getFd() { return fd; }
void startTiming();
void stopTiming();
unsigned int kbitsPerSecond();
unsigned int timeWaited() { return timeWaitedIn100us; }
private:
virtual bool fillBuffer(size_t maxSize, bool wait);
@@ -60,10 +55,6 @@ namespace rdr {
int timeoutms;
FdInStreamBlockCallback* blockCallback;
bool timing;
unsigned int timeWaitedIn100us;
unsigned int timedKbits;
size_t offset;
U8* start;
};