From 4ae8c2f6641702a9b107efc6e05fccc48525bbdb Mon Sep 17 00:00:00 2001 From: ALEXks Date: Mon, 3 Mar 2025 18:51:20 +0300 Subject: [PATCH] removed timer checking --- src/files/Supervisor.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/files/Supervisor.h b/src/files/Supervisor.h index 3d67cad1..d3978c8d 100644 --- a/src/files/Supervisor.h +++ b/src/files/Supervisor.h @@ -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(); } }