nesca/progressbardrawer.cpp

19 lines
342 B
C++
Raw Normal View History

2015-02-24 14:00:19 +00:00
#include "progressbardrawer.h"
#include "externData.h"
void ProgressbarDrawer::update()
{
emit pbTh->upd();
};
int nesca_3::perc = 0;
void ProgressbarDrawer::run()
{
2015-04-18 22:30:55 +00:00
globalScanFlag = true;
2015-02-24 14:00:19 +00:00
while(globalScanFlag)
{
msleep(1000);
nesca_3::perc = (unsigned long)100*indexIP/(gTargetsNumber == 0 ? 1 : gTargetsNumber);
2015-02-24 14:00:19 +00:00
update();
};
};