fix entity-server avg ping, remove debug

This commit is contained in:
Stephen Birarda 2015-11-18 10:32:35 -08:00
parent d90c073102
commit c54dffac12
2 changed files with 4 additions and 2 deletions

View file

@ -148,6 +148,9 @@ void Stats::updateStats(bool force) {
}
}
});
// update the entities ping with the average for all connected entity servers
STAT_UPDATE(entitiesPing, octreeServerCount ? totalPingOctree / octreeServerCount : -1);
// Third column, avatar stats
MyAvatar* myAvatar = avatarManager->getMyAvatar();

View file

@ -92,7 +92,7 @@ NodeList::NodeList(char newOwnerType, unsigned short socketListenPort, unsigned
// setup our timer to send keepalive pings (it's started and stopped on domain connect/disconnect)
_keepAlivePingTimer.setInterval(KEEPALIVE_PING_INTERVAL_MS);
connect(&_keepAlivePingTimer, &QTimer::timeout, this, &NodeList::sendKeepAlivePings);
connect(&_domainHandler, SIGNAL(connectedToDomain()), &_keepAlivePingTimer, SLOT(start()));
connect(&_domainHandler, SIGNAL(connectedToDomain(QString)), &_keepAlivePingTimer, SLOT(start()));
connect(&_domainHandler, &DomainHandler::disconnectedFromDomain, &_keepAlivePingTimer, &QTimer::stop);
// we definitely want STUN to update our public socket, so call the LNL to kick that off
@ -641,7 +641,6 @@ void NodeList::activateSocketFromNodeCommunication(QSharedPointer<NLPacket> pack
}
void NodeList::sendKeepAlivePings() {
qDebug() << "Sending keepalive pings!";
eachMatchingNode([this](const SharedNodePointer& node)->bool {
return _nodeTypesOfInterest.contains(node->getType());
}, [&](const SharedNodePointer& node) {