Update udphandler.cpp

merge-requests/9/merge
Phil Taylor 2022-01-27 23:47:17 +00:00
rodzic be7dbbb395
commit 6427be05b8
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1124,7 +1124,7 @@ void udpBase::dataReceived(QByteArray r)
{
// Single packet request
packetsLost++;
congestion = packetsSent/packetsLost * 100;
congestion = (packetsSent/packetsLost) * 100;
txBufferMutex.lock();
QMap<quint16,SEQBUFENTRY>::iterator match = txSeqBuf.find(in->seq);
if (match != txSeqBuf.end()) {
@ -1230,7 +1230,7 @@ void udpBase::dataReceived(QByteArray r)
udpMutex.unlock();
match++;
packetsLost++;
congestion=packetsSent/packetsLost * 100;
congestion=(packetsSent/packetsLost) * 100;
}
}
}