Selaa lähdekoodia

Ignore the extra second when we are done.

Sacha Ligthert 1 vuosi sitten
vanhempi
sitoutus
7084a62962
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      solver/processing.go

+ 3 - 2
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
 
 }