mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 18:52:19 +00:00
60 lines
1.1 KiB
C++
60 lines
1.1 KiB
C++
#include "DrawerTh_QoSScanner.h"
|
|
#include "STh.h"
|
|
#include "externData.h"
|
|
|
|
int DrawerTh_QoSScanner::MaxDataVal = 1;
|
|
|
|
void DrawerTh_QoSScanner::run()
|
|
{
|
|
while(QoSScanFlag)
|
|
{
|
|
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);
|
|
lstOfLabels.append(baCount);
|
|
lstOfLabels.append(Overl);
|
|
lstOfLabels.append(ssh);
|
|
|
|
QList<int> lstOfLabelsCopy = lstOfLabels;
|
|
qSort(lstOfLabelsCopy.begin(), lstOfLabelsCopy.end(), qGreater<float>());
|
|
if(lstOfLabelsCopy[0] > MaxDataVal) MaxDataVal = lstOfLabelsCopy[0];
|
|
|
|
dtQoS->doEmitionAddLine();
|
|
}
|
|
else
|
|
{
|
|
msleep(500);
|
|
AnomC1 = 0;
|
|
WF = 0;
|
|
baCount = 0;
|
|
filtered = 0;
|
|
Overl = 0;
|
|
Lowl = 0;
|
|
Alive = 0;
|
|
Susp = 0;
|
|
ssh = 0;
|
|
};
|
|
|
|
AnomC1 = 0;
|
|
WF = 0;
|
|
baCount = 0;
|
|
filtered = 0;
|
|
Overl = 0;
|
|
Lowl = 0;
|
|
Alive = 0;
|
|
Susp = 0;
|
|
ssh = 0;
|
|
msleep(2000);
|
|
};
|
|
}
|
|
|
|
void DrawerTh_QoSScanner::doEmitionAddLine()
|
|
{
|
|
emit dtQoS->sAddLine();
|
|
}
|