nesca/progressbardrawer.cpp

16 lines
310 B
C++
Raw Normal View History

2014-08-08 23:02:44 +00:00
#include "progressbardrawer.h"
void ProgressbarDrawer::update()
{
emit pbTh->upd();
};
int nesca_3::perc = 0;
void ProgressbarDrawer::run()
{
while(globalScanFlag)
{
msleep(1000);
nesca_3::perc = (unsigned long)100*indexIP/(gTargetsOverall == 0 ? 1 : gTargetsOverall);
update();
};
};