mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 10:42:21 +00:00
58 lines
1.1 KiB
C++
58 lines
1.1 KiB
C++
#include "DrawerTh_QoSScanner.h"
|
|
#include "STh.h"
|
|
#include "externData.h"
|
|
|
|
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(BA);
|
|
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;
|
|
BA = 0;
|
|
Filt = 0;
|
|
Overl = 0;
|
|
Lowl = 0;
|
|
Alive = 0;
|
|
Susp = 0;
|
|
ssh = 0;
|
|
};
|
|
|
|
AnomC1 = 0;
|
|
WF = 0;
|
|
BA = 0;
|
|
Filt = 0;
|
|
Overl = 0;
|
|
Lowl = 0;
|
|
Alive = 0;
|
|
Susp = 0;
|
|
ssh = 0;
|
|
msleep(2000);
|
|
};
|
|
}
|
|
|
|
void DrawerTh_QoSScanner::doEmitionAddLine()
|
|
{
|
|
emit dtQoS->sAddLine();
|
|
}
|