Fix Avatar Mixer divide by zero error in stats reporting

Under load, the frame count may not be updated between
stats reports, causing the diff between frame counts to
be zero, resulting in divide by zero errors.
This commit is contained in:
Roxanne Skelly 2019-02-27 12:43:41 -08:00
parent abf2226750
commit 6df28da0a5

View file

@ -656,8 +656,11 @@ void AvatarMixer::handleRadiusIgnoreRequestPacket(QSharedPointer<ReceivedMessage
}
void AvatarMixer::sendStatsPacket() {
auto start = usecTimestampNow();
if (!_numTightLoopFrames) {
return;
}
auto start = usecTimestampNow();
QJsonObject statsObject;