kopia lustrzana https://gitlab.com/eliggett/wfview
Update udphandler.cpp
rodzic
be7dbbb395
commit
6427be05b8
|
@ -1124,7 +1124,7 @@ void udpBase::dataReceived(QByteArray r)
|
||||||
{
|
{
|
||||||
// Single packet request
|
// Single packet request
|
||||||
packetsLost++;
|
packetsLost++;
|
||||||
congestion = packetsSent/packetsLost * 100;
|
congestion = (packetsSent/packetsLost) * 100;
|
||||||
txBufferMutex.lock();
|
txBufferMutex.lock();
|
||||||
QMap<quint16,SEQBUFENTRY>::iterator match = txSeqBuf.find(in->seq);
|
QMap<quint16,SEQBUFENTRY>::iterator match = txSeqBuf.find(in->seq);
|
||||||
if (match != txSeqBuf.end()) {
|
if (match != txSeqBuf.end()) {
|
||||||
|
@ -1230,7 +1230,7 @@ void udpBase::dataReceived(QByteArray r)
|
||||||
udpMutex.unlock();
|
udpMutex.unlock();
|
||||||
match++;
|
match++;
|
||||||
packetsLost++;
|
packetsLost++;
|
||||||
congestion=packetsSent/packetsLost * 100;
|
congestion=(packetsSent/packetsLost) * 100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue