mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 18:52:19 +00:00
19 lines
342 B
C++
19 lines
342 B
C++
#include "progressbardrawer.h"
|
|
#include "externData.h"
|
|
|
|
void ProgressbarDrawer::update()
|
|
{
|
|
emit pbTh->upd();
|
|
};
|
|
|
|
int nesca_3::perc = 0;
|
|
void ProgressbarDrawer::run()
|
|
{
|
|
globalScanFlag = true;
|
|
while(globalScanFlag)
|
|
{
|
|
msleep(1000);
|
|
nesca_3::perc = (unsigned long)100*indexIP/(gTargetsNumber == 0 ? 1 : gTargetsNumber);
|
|
update();
|
|
};
|
|
}; |