Make the linter happy.

This commit is contained in:
Sacha Ligthert 2025-01-27 23:14:49 +01:00
parent e3be1094ea
commit 3bcb5b95e7

View File

@ -152,9 +152,10 @@ func (solver *Solver) Tracker() {
est, err := time.ParseDuration(duration_string) est, err := time.ParseDuration(duration_string)
if err != nil { if err != nil {
est_fin = "parse error" est_fin = "parse error"
} } else {
est_fin = est.String() est_fin = est.String()
} }
}
// Printing the progress // Printing the progress
log.Println("Processing: " + strconv.Itoa(int(percentage)) + "% (" + strconv.FormatInt(solver.counter.Load(), 10) + "/" + strconv.Itoa(int(solver.Iter)) + "); Rate: " + strconv.FormatInt(rateDiff, 10) + "/sec for " + timer_elapsed.String() + "; Time left (est.): " + est_fin) log.Println("Processing: " + strconv.Itoa(int(percentage)) + "% (" + strconv.FormatInt(solver.counter.Load(), 10) + "/" + strconv.Itoa(int(solver.Iter)) + "); Rate: " + strconv.FormatInt(rateDiff, 10) + "/sec for " + timer_elapsed.String() + "; Time left (est.): " + est_fin)