mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 21:18:43 +02:00
Explicitely cast to float
This commit is contained in:
parent
f32562b191
commit
51168a8a29
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
|||
#include <limits>
|
||||
|
||||
float PacketStreamStats::getLostRate() const {
|
||||
return (_expectedReceived == 0) ? 0.0f : (float)_lost / _expectedReceived;
|
||||
return (_expectedReceived == 0) ? 0.0f : (float)_lost / (float)_expectedReceived;
|
||||
}
|
||||
|
||||
SequenceNumberStats::SequenceNumberStats(int statsHistoryLength, bool canDetectOutOfSync)
|
||||
|
|
Loading…
Reference in a new issue