Explorar el Código

Small optimization

Sacha Ligthert hace 1 año
padre
commit
3d4729bdb6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      solver/processing.go

+ 1 - 1
solver/processing.go

@@ -132,7 +132,7 @@ func (solver *Solver) tracker() {
 		if track <= int(percentage) || rateDiff == 0 { // Start if-statement
 
 			// Make sure something happened, making rateStart the only reliable variable
-			if rateDiff == 0 {
+			if solver.iter == solver.counter.Load() {
 				percentage = 100
 				solver.counter.Store(solver.iter)
 				done = true