Explicitely cast to float

This commit is contained in:
Atlante45 2016-02-11 09:35:31 -08:00
parent f32562b191
commit 51168a8a29

View file

@ -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)