Regression Fix: Fix compilation issue on Windows introduced by the RateAccuracy feature
This commit is contained in:
parent
06182a435c
commit
01e8524491
@ -328,7 +328,7 @@ PcapPort::PortTransmitter::PortTransmitter(const char *device)
|
||||
#ifdef Q_OS_WIN32
|
||||
LARGE_INTEGER freq;
|
||||
if (QueryPerformanceFrequency(&freq))
|
||||
gTicksFreq = ticksFreq_ = freq.QuadPart;
|
||||
gTicksFreq = freq.QuadPart;
|
||||
else
|
||||
Q_ASSERT_X(false, "PortTransmitter::PortTransmitter",
|
||||
"This Win32 platform does not support performance counter");
|
||||
@ -721,7 +721,7 @@ void PcapPort::PortTransmitter::udelay(unsigned long usec)
|
||||
LARGE_INTEGER curTicks;
|
||||
|
||||
QueryPerformanceCounter(&curTicks);
|
||||
tgtTicks.QuadPart = curTicks.QuadPart + (usec*ticksFreq_)/1000000;
|
||||
tgtTicks.QuadPart = curTicks.QuadPart + (usec*gTicksFreq)/1000000;
|
||||
|
||||
while (curTicks.QuadPart < tgtTicks.QuadPart)
|
||||
QueryPerformanceCounter(&curTicks);
|
||||
|
@ -181,7 +181,6 @@ protected:
|
||||
int sendQueueTransmit(pcap_t *p, pcap_send_queue *queue, long &overHead,
|
||||
int sync);
|
||||
|
||||
quint64 ticksFreq_;
|
||||
QList<PacketSequence*> packetSequenceList_;
|
||||
PacketSequence *currentPacketSequence_;
|
||||
int repeatSequenceStart_;
|
||||
|
Loading…
Reference in New Issue
Block a user