removed timer checking

This commit is contained in:
ALEXks
2025-03-03 18:51:20 +03:00
parent 683d5249eb
commit 4ae8c2f664

View File

@@ -161,7 +161,6 @@ 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;
@@ -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();
} }
} }