2015-02-24 14:00:19 +00:00
|
|
|
#include "DrawerTh_QoSScanner.h"
|
|
|
|
#include "STh.h"
|
|
|
|
#include "externData.h"
|
|
|
|
|
2015-04-16 11:51:51 +00:00
|
|
|
int DrawerTh_QoSScanner::MaxDataVal = 1;
|
|
|
|
|
2015-02-24 14:00:19 +00:00
|
|
|
void DrawerTh_QoSScanner::run()
|
|
|
|
{
|
|
|
|
while(QoSScanFlag)
|
2015-03-10 14:35:50 +00:00
|
|
|
{
|
2015-02-24 14:00:19 +00:00
|
|
|
if(stt->isRunning() == true && widgetIsHidden == false && tray->isVisible() == false && QOSWait == false)
|
|
|
|
{
|
|
|
|
lstOfLabels.clear();
|
|
|
|
lstOfLabels.append(Alive);
|
|
|
|
lstOfLabels.append(AnomC1);
|
|
|
|
lstOfLabels.append(WF);
|
|
|
|
lstOfLabels.append(Susp);
|
|
|
|
lstOfLabels.append(Lowl);
|
2015-04-04 12:43:22 +00:00
|
|
|
lstOfLabels.append(baCount);
|
2015-02-24 14:00:19 +00:00
|
|
|
lstOfLabels.append(Overl);
|
|
|
|
lstOfLabels.append(ssh);
|
|
|
|
|
|
|
|
QList<int> lstOfLabelsCopy = lstOfLabels;
|
2015-03-10 14:35:50 +00:00
|
|
|
qSort(lstOfLabelsCopy.begin(), lstOfLabelsCopy.end(), qGreater<float>());
|
|
|
|
if(lstOfLabelsCopy[0] > MaxDataVal) MaxDataVal = lstOfLabelsCopy[0];
|
2015-02-24 14:00:19 +00:00
|
|
|
|
|
|
|
dtQoS->doEmitionAddLine();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
msleep(500);
|
|
|
|
AnomC1 = 0;
|
|
|
|
WF = 0;
|
2015-04-04 12:43:22 +00:00
|
|
|
baCount = 0;
|
2015-04-16 11:51:51 +00:00
|
|
|
filtered = 0;
|
2015-02-24 14:00:19 +00:00
|
|
|
Overl = 0;
|
|
|
|
Lowl = 0;
|
|
|
|
Alive = 0;
|
|
|
|
Susp = 0;
|
|
|
|
ssh = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
AnomC1 = 0;
|
|
|
|
WF = 0;
|
2015-04-04 12:43:22 +00:00
|
|
|
baCount = 0;
|
2015-04-16 11:51:51 +00:00
|
|
|
filtered = 0;
|
2015-02-24 14:00:19 +00:00
|
|
|
Overl = 0;
|
|
|
|
Lowl = 0;
|
|
|
|
Alive = 0;
|
|
|
|
Susp = 0;
|
|
|
|
ssh = 0;
|
|
|
|
msleep(2000);
|
|
|
|
};
|
2015-03-10 14:35:50 +00:00
|
|
|
}
|
2015-02-24 14:00:19 +00:00
|
|
|
|
|
|
|
void DrawerTh_QoSScanner::doEmitionAddLine()
|
|
|
|
{
|
|
|
|
emit dtQoS->sAddLine();
|
2015-03-10 14:35:50 +00:00
|
|
|
}
|