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