mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 02:43:32 +02:00
Coding standard
This commit is contained in:
parent
1e3bf67fab
commit
f32562b191
2 changed files with 5 additions and 1 deletions
|
@ -14,6 +14,10 @@
|
||||||
|
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
|
float PacketStreamStats::getLostRate() const {
|
||||||
|
return (_expectedReceived == 0) ? 0.0f : (float)_lost / _expectedReceived;
|
||||||
|
}
|
||||||
|
|
||||||
SequenceNumberStats::SequenceNumberStats(int statsHistoryLength, bool canDetectOutOfSync)
|
SequenceNumberStats::SequenceNumberStats(int statsHistoryLength, bool canDetectOutOfSync)
|
||||||
: _lastReceivedSequence(0),
|
: _lastReceivedSequence(0),
|
||||||
_missingSet(),
|
_missingSet(),
|
||||||
|
|
|
@ -43,7 +43,7 @@ public:
|
||||||
return diff;
|
return diff;
|
||||||
}
|
}
|
||||||
|
|
||||||
float getLostRate() const { return _expectedReceived ? (float)_lost / _expectedReceived : 0; }
|
float getLostRate() const;
|
||||||
|
|
||||||
quint32 _received;
|
quint32 _received;
|
||||||
quint32 _unreasonable;
|
quint32 _unreasonable;
|
||||||
|
|
Loading…
Reference in a new issue