mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 10:13:12 +02:00
Fix division by 0
This commit is contained in:
parent
1fe4ff5319
commit
1e3bf67fab
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ public:
|
|||
return diff;
|
||||
}
|
||||
|
||||
float getLostRate() const { return (float)_lost / _expectedReceived; }
|
||||
float getLostRate() const { return _expectedReceived ? (float)_lost / _expectedReceived : 0; }
|
||||
|
||||
quint32 _received;
|
||||
quint32 _unreasonable;
|
||||
|
|
Loading…
Reference in a new issue