mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 18:52:19 +00:00
ada13732ae
Conflicts: 00000036.wav ActivityDrawerTh_HorNet.cpp ActivityDrawerTh_HorNet.h CheckKey_Th.cpp CheckKey_Th.h CheckProxy_Th.cpp CheckProxy_Th.h DrawerTh_GridQoSScanner.cpp DrawerTh_GridQoSScanner.h DrawerTh_HorNet.cpp DrawerTh_HorNet.h DrawerTh_ME2Scanner.cpp DrawerTh_ME2Scanner.h DrawerTh_QoSScanner.cpp DrawerTh_QoSScanner.h DrawerTh_VoiceScanner.cpp DrawerTh_VoiceScanner.h IRCPinger_Th.cpp IRCPinger_Th.h STh.cpp STh.h connector.cpp finder.cpp irc_nmblinker.cpp irc_nmblinker.h login.txt main.cpp msgcheckerthread.cpp msgcheckerthread.h negatives.txt nesca_3.cpp nesca_3.h nesca_3.qrc nesca_3.ui nesca_startModule.cpp oIRC_Th.cpp oIRC_Th.h pass.txt piestat.cpp piestat.h progressbardrawer.cpp progressbardrawer.h resource.h sshpass.txt vercheckerthread.cpp vercheckerthread.h wflogin.txt wfpass.txt
76 lines
1.6 KiB
C++
76 lines
1.6 KiB
C++
<<<<<<< HEAD
|
|
#include "ActivityDrawerTh_HorNet.h"
|
|
#include "STh.h"
|
|
|
|
void ActivityDrawerTh_HorNet::doEmitDrawActivityLine(QString data)
|
|
{
|
|
emit adtHN->sDrawActivityLine(data);
|
|
};
|
|
void ActivityDrawerTh_HorNet::doEmitDrawGrid()
|
|
{
|
|
emit adtHN->sDrawGrid();
|
|
};
|
|
|
|
void makeActLine(int val)
|
|
{
|
|
if(actLst.size() < 50) actLst.push_back(val);
|
|
else
|
|
{
|
|
actLst.pop_front();
|
|
actLst.push_back(val);
|
|
};
|
|
};
|
|
void ActivityDrawerTh_HorNet::run()
|
|
{
|
|
adtHN->doEmitDrawGrid();
|
|
int maxAct = Activity + 1;
|
|
int nm = 0;
|
|
while(true)
|
|
{
|
|
if(maxAct < Activity) maxAct = Activity;
|
|
if(maxAct > 1000) nm = maxAct-=1000;
|
|
else if(maxAct > 10) nm = maxAct-=10;
|
|
makeActLine(((float)Activity/(nm != 0 ? nm : 1)) * 10);
|
|
adtHN->doEmitDrawActivityLine(QString::number(Activity) + "b");
|
|
Activity = 0;
|
|
msleep(130);
|
|
};
|
|
=======
|
|
#include "ActivityDrawerTh_HorNet.h"
|
|
#include "STh.h"
|
|
|
|
void ActivityDrawerTh_HorNet::doEmitDrawActivityLine(QString data)
|
|
{
|
|
emit adtHN->sDrawActivityLine(data);
|
|
};
|
|
void ActivityDrawerTh_HorNet::doEmitDrawGrid()
|
|
{
|
|
emit adtHN->sDrawGrid();
|
|
};
|
|
|
|
void makeActLine(int val)
|
|
{
|
|
if(actLst.size() < 50) actLst.push_back(val);
|
|
else
|
|
{
|
|
actLst.pop_front();
|
|
actLst.push_back(val);
|
|
};
|
|
};
|
|
void ActivityDrawerTh_HorNet::run()
|
|
{
|
|
adtHN->doEmitDrawGrid();
|
|
int maxAct = Activity + 1;
|
|
int nm = 0;
|
|
while(true)
|
|
{
|
|
if(maxAct < Activity) maxAct = Activity;
|
|
if(maxAct > 1000) nm = maxAct-=1000;
|
|
else if(maxAct > 10) nm = maxAct-=10;
|
|
makeActLine(((float)Activity/(nm != 0 ? nm : 1)) * 10);
|
|
adtHN->doEmitDrawActivityLine(QString::number(Activity) + "b");
|
|
Activity = 0;
|
|
msleep(130);
|
|
};
|
|
>>>>>>> 5d30af667b7f24c6e91d2bf1888215f755b4378d
|
|
}; |