Coding standard

This commit is contained in:
Atlante45 2016-02-09 18:19:16 +01:00
parent 1e3bf67fab
commit f32562b191
2 changed files with 5 additions and 1 deletions

View file

@ -14,6 +14,10 @@
#include <limits>
float PacketStreamStats::getLostRate() const {
return (_expectedReceived == 0) ? 0.0f : (float)_lost / _expectedReceived;
}
SequenceNumberStats::SequenceNumberStats(int statsHistoryLength, bool canDetectOutOfSync)
: _lastReceivedSequence(0),
_missingSet(),

View file

@ -43,7 +43,7 @@ public:
return diff;
}
float getLostRate() const { return _expectedReceived ? (float)_lost / _expectedReceived : 0; }
float getLostRate() const;
quint32 _received;
quint32 _unreasonable;