-
Notifications
You must be signed in to change notification settings - Fork 79
/
DrawerTh_QoSScanner.cpp
59 lines (53 loc) · 1.17 KB
/
DrawerTh_QoSScanner.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#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(camerasC1);
//lstOfLabels.append(WF);
lstOfLabels.append(other);
//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);
camerasC1 = 0;
//WF = 0;
baCount = 0;
filtered = 0;
Overl = 0;
//Lowl = 0;
Alive = 0;
other = 0;
ssh = 0;
};
camerasC1 = 0;
//WF = 0;
baCount = 0;
filtered = 0;
Overl = 0;
//Lowl = 0;
Alive = 0;
other = 0;
ssh = 0;
msleep(2000);
};
}
void DrawerTh_QoSScanner::doEmitionAddLine()
{
emit dtQoS->sAddLine();
}