From c4a81308107291a2cd65e0755028e1f8421db84e Mon Sep 17 00:00:00 2001 From: cwurn <146986708+cw-urn@users.noreply.github.com> Date: Thu, 28 Aug 2025 05:50:32 +0300 Subject: [PATCH] Update est time calc estimated time calculation was broken i fixed it guys ! --- Auto-Image.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Auto-Image.js b/Auto-Image.js index c9f4c29..94f4a78 100644 --- a/Auto-Image.js +++ b/Auto-Image.js @@ -2409,15 +2409,15 @@ }, calculateEstimatedTime: (remainingPixels, charges, cooldown) => { - if (remainingPixels <= 0) return 0 + if (remainingPixels <= 0) return 0; - const paintingSpeedDelay = state.paintingSpeed > 0 ? (1000 / state.paintingSpeed) : 1000 - const timeFromSpeed = remainingPixels * paintingSpeedDelay + const paintingSpeedDelay = state.paintingSpeed > 0 ? (1000 / state.paintingSpeed) : 1000; + const timeFromSpeed = remainingPixels * paintingSpeedDelay; - const cyclesNeeded = Math.ceil(remainingPixels / Math.max(charges, 1)) - const timeFromCharges = cyclesNeeded * cooldown + const cyclesNeeded = Math.ceil(remainingPixels / Math.max(charges, 1)); + const timeFromCharges = cyclesNeeded * cooldown; - return Math.max(timeFromSpeed, timeFromCharges) + return timeFromSpeed + timeFromCharges; // combine instead of taking max }, // --- Painted pixel tracking helpers ---