mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-20 14:21:23 +02:00
add satoshi cost to voxel packet debug
This commit is contained in:
parent
66592466ad
commit
7a128e5f77
1 changed files with 3 additions and 2 deletions
|
@ -94,7 +94,7 @@ void OctreeEditPacketSender::queuePacketToNode(const QUuid& nodeUUID, unsigned c
|
||||||
unsigned char* sequenceAt = buffer + numBytesPacketHeader;
|
unsigned char* sequenceAt = buffer + numBytesPacketHeader;
|
||||||
quint16 sequence = _outgoingSequenceNumbers[nodeUUID]++;
|
quint16 sequence = _outgoingSequenceNumbers[nodeUUID]++;
|
||||||
memcpy(sequenceAt, &sequence, sizeof(quint16));
|
memcpy(sequenceAt, &sequence, sizeof(quint16));
|
||||||
|
|
||||||
// send packet
|
// send packet
|
||||||
QByteArray packet(reinterpret_cast<const char*>(buffer), length);
|
QByteArray packet(reinterpret_cast<const char*>(buffer), length);
|
||||||
queuePacketForSending(node, packet);
|
queuePacketForSending(node, packet);
|
||||||
|
@ -103,7 +103,7 @@ void OctreeEditPacketSender::queuePacketToNode(const QUuid& nodeUUID, unsigned c
|
||||||
_sentPacketHistories[nodeUUID].packetSent(sequence, packet);
|
_sentPacketHistories[nodeUUID].packetSent(sequence, packet);
|
||||||
|
|
||||||
// debugging output...
|
// debugging output...
|
||||||
bool wantDebugging = false;
|
bool wantDebugging = true;
|
||||||
if (wantDebugging) {
|
if (wantDebugging) {
|
||||||
int numBytesPacketHeader = numBytesForPacketHeader(reinterpret_cast<const char*>(buffer));
|
int numBytesPacketHeader = numBytesForPacketHeader(reinterpret_cast<const char*>(buffer));
|
||||||
unsigned short int sequence = (*((unsigned short int*)(buffer + numBytesPacketHeader)));
|
unsigned short int sequence = (*((unsigned short int*)(buffer + numBytesPacketHeader)));
|
||||||
|
@ -113,6 +113,7 @@ void OctreeEditPacketSender::queuePacketToNode(const QUuid& nodeUUID, unsigned c
|
||||||
|
|
||||||
qDebug() << "OctreeEditPacketSender::queuePacketToNode() queued " << buffer[0] <<
|
qDebug() << "OctreeEditPacketSender::queuePacketToNode() queued " << buffer[0] <<
|
||||||
" - command to node bytes=" << length <<
|
" - command to node bytes=" << length <<
|
||||||
|
" satoshiCost=" << satoshiCost <<
|
||||||
" sequence=" << sequence <<
|
" sequence=" << sequence <<
|
||||||
" transitTimeSoFar=" << transitTime << " usecs";
|
" transitTimeSoFar=" << transitTime << " usecs";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue