Переглянути джерело

Ignore the extra second when we are done.

Sacha Ligthert 1 рік тому
батько
коміт
7084a62962
1 змінених файлів з 3 додано та 2 видалено
  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
 
 }