mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 02:36:54 +02:00
CR
This commit is contained in:
parent
8c1fb67825
commit
449d6a04d8
3 changed files with 5 additions and 5 deletions
|
@ -33,7 +33,7 @@ void DomainServerNodeData::updateJSONStats(QByteArray statsByteArray) {
|
||||||
|
|
||||||
QJsonObject DomainServerNodeData::overrideValuesIfNeeded(const QJsonObject& newStats) {
|
QJsonObject DomainServerNodeData::overrideValuesIfNeeded(const QJsonObject& newStats) {
|
||||||
QJsonObject result;
|
QJsonObject result;
|
||||||
for(auto it = newStats.constBegin(); it != newStats.constEnd(); ++it) {
|
for (auto it = newStats.constBegin(); it != newStats.constEnd(); ++it) {
|
||||||
const auto& key = it.key();
|
const auto& key = it.key();
|
||||||
const auto& value = it.value();
|
const auto& value = it.value();
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ QJsonArray DomainServerNodeData::overrideValuesIfNeeded(const QJsonArray& newSta
|
||||||
}
|
}
|
||||||
|
|
||||||
void DomainServerNodeData::addOverrideForKey(const QString& key, const QString& value,
|
void DomainServerNodeData::addOverrideForKey(const QString& key, const QString& value,
|
||||||
const QString& overrideValue) {
|
const QString& overrideValue) {
|
||||||
// Insert override value
|
// Insert override value
|
||||||
_overrideHash.insert({key, value}, overrideValue);
|
_overrideHash.insert({key, value}, overrideValue);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3042,7 +3042,7 @@ int Application::sendNackPackets() {
|
||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nackPacketList.getNumPackets()) {
|
if (nackPacketList->getNumPackets()) {
|
||||||
packetsSent += nackPacketList->getNumPackets();
|
packetsSent += nackPacketList->getNumPackets();
|
||||||
|
|
||||||
// send the packet list
|
// send the packet list
|
||||||
|
|
|
@ -38,11 +38,11 @@ public:
|
||||||
Retransmission,
|
Retransmission,
|
||||||
Duplicate,
|
Duplicate,
|
||||||
|
|
||||||
NumEvent
|
NumEvents
|
||||||
};
|
};
|
||||||
|
|
||||||
// construct a vector for the events of the size of our Enum - default value is zero
|
// construct a vector for the events of the size of our Enum - default value is zero
|
||||||
std::vector<int> events = std::vector<int>((int) Event::NumEvent, 0);
|
std::vector<int> events = std::vector<int>((int) Event::NumEvents, 0);
|
||||||
|
|
||||||
// packet counts and sizes
|
// packet counts and sizes
|
||||||
int sentPackets { 0 };
|
int sentPackets { 0 };
|
||||||
|
|
Loading…
Reference in a new issue