removed timer checking
This commit is contained in:
@@ -161,8 +161,7 @@ public:
|
|||||||
const double total = totalProcessTasks;
|
const double total = totalProcessTasks;
|
||||||
|
|
||||||
auto timer_pause = Utils::getAbsoluteTime();
|
auto timer_pause = Utils::getAbsoluteTime();
|
||||||
auto timer_dump = Utils::getAbsoluteTime();
|
|
||||||
|
|
||||||
while (activeTasks) {
|
while (activeTasks) {
|
||||||
long oldActiveTasks = activeTasks;
|
long oldActiveTasks = activeTasks;
|
||||||
emptyKeys.clear();
|
emptyKeys.clear();
|
||||||
@@ -223,10 +222,9 @@ public:
|
|||||||
#if DEB
|
#if DEB
|
||||||
printf("done %ld / %d\n", done, this->getLength());
|
printf("done %ld / %d\n", done, this->getLength());
|
||||||
#endif
|
#endif
|
||||||
if ((done % step) == 0 && (Utils::getAbsoluteTime() - timer_dump) > 5) {
|
if ((done % step) == 0) {
|
||||||
size_t persentDone = (done / total) * 100.0;
|
size_t persentDone = (done / total) * 100.0;
|
||||||
saveProgress(persentDone);
|
saveProgress(persentDone);
|
||||||
timer_dump = Utils::getAbsoluteTime();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user