mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +02:00
code review comments for #4713
This commit is contained in:
parent
f9a25d7089
commit
c52426385d
2 changed files with 3 additions and 2 deletions
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include <NodeList.h>
|
||||
#include <PacketHeaders.h>
|
||||
#include <SharedUtil.h>
|
||||
|
||||
#include "AvatarLogging.h"
|
||||
#include "AvatarHashMap.h"
|
||||
|
@ -25,7 +26,7 @@ AvatarHash::iterator AvatarHashMap::erase(const AvatarHash::iterator& iterator)
|
|||
return _avatarHash.erase(iterator);
|
||||
}
|
||||
|
||||
const qint64 AVATAR_SILENCE_THRESHOLD_USECS = 5 * 1000 * 1000;
|
||||
const qint64 AVATAR_SILENCE_THRESHOLD_USECS = 5 * USECS_PER_SECOND;
|
||||
|
||||
bool AvatarHashMap::shouldKillAvatar(const AvatarSharedPointer& sharedAvatar) {
|
||||
return (sharedAvatar->getOwningAvatarMixer() == NULL
|
||||
|
|
|
@ -52,7 +52,7 @@ void SimpleMovingAverage::reset() {
|
|||
|
||||
float SimpleMovingAverage::getEventDeltaAverage() const {
|
||||
return (ONE_MINUS_WEIGHTING * _eventDeltaAverage) +
|
||||
(WEIGHTING * ((usecTimestampNow() - _lastEventTimestamp) / 1000000.0f ));
|
||||
(WEIGHTING * ((usecTimestampNow() - _lastEventTimestamp) / 1000000.0f));
|
||||
}
|
||||
|
||||
uint64_t SimpleMovingAverage::getUsecsSinceLastEvent() const {
|
||||
|
|
Loading…
Reference in a new issue