Commit f9f46e09 authored by Arek Stopczynski's avatar Arek Stopczynski

added current packet information in the datahandler

parent 5a1a2756
......@@ -4,6 +4,7 @@ Sbs2DataHandler::Sbs2DataHandler(QObject *parent) :
QObject(parent)
{
samplesCollected = 0;
packetsSeen = 0;
//filtering
filterOn = 0;
......@@ -47,15 +48,18 @@ Sbs2DataHandler::Sbs2DataHandler(QObject *parent) :
networkSendRawDataOn = 0;
QThreadPool::globalInstance()->setMaxThreadCount(6); //3 is minimal right now, annyoing that it needs to be set manually
qDebug() << QThreadPool::globalInstance()->activeThreadCount() << QThreadPool::globalInstance()->maxThreadCount() << QThread::idealThreadCount();
}
void Sbs2DataHandler::setThisPacket(Sbs2Packet *thisPacket_)
{
thisPacket = thisPacket_;
++packetsSeen;
}
void Sbs2DataHandler::sendRawData()
......@@ -642,5 +646,7 @@ QString Sbs2DataHandler::getRawFilename()
int Sbs2DataHandler::getPacketZero()
{
if (sbs2FileHandler == 0)
return packetsSeen;
return sbs2FileHandler->getPacketZero();
}
......@@ -128,6 +128,8 @@ protected:
//objects
Sbs2NetworkHandler* sbs2NetworkHandler;
int packetsSeen;
protected:
virtual void reset();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment