From 7084a62962314ec7b0c0abe269e9e11efa5c4470 Mon Sep 17 00:00:00 2001 From: Sacha Ligthert Date: Mon, 27 Jan 2025 20:17:09 +0100 Subject: [PATCH] Ignore the extra second when we are done. --- solver/processing.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/solver/processing.go b/solver/processing.go index 1edb847..f356b95 100644 --- a/solver/processing.go +++ b/solver/processing.go @@ -178,8 +178,9 @@ func (solver *Solver) tracker() { rateStart = solver.counter.Load() // Sleep for a second - time.Sleep(1 * time.Second) - + if solver.iter != solver.counter.Load() { + time.Sleep(1 * time.Second) + } } // End for-loop }