Upload 10 files
Browse files- src/solver.rs +2 -2
src/solver.rs
CHANGED
|
@@ -347,7 +347,7 @@ fn solve_blocking(
|
|
| 347 |
}
|
| 348 |
|
| 349 |
// Periodic update
|
| 350 |
-
if ls_timer.steps_accepted()
|
| 351 |
update_job(&job, &solution, current_score);
|
| 352 |
debug!(
|
| 353 |
step,
|
|
@@ -359,7 +359,7 @@ fn solve_blocking(
|
|
| 359 |
}
|
| 360 |
|
| 361 |
// Periodic console progress (every 10000 moves)
|
| 362 |
-
if ls_timer.moves_evaluated()
|
| 363 |
console::print_step_progress(
|
| 364 |
ls_timer.steps_accepted(),
|
| 365 |
ls_timer.elapsed(),
|
|
|
|
| 347 |
}
|
| 348 |
|
| 349 |
// Periodic update
|
| 350 |
+
if ls_timer.steps_accepted() % 1000 == 0 {
|
| 351 |
update_job(&job, &solution, current_score);
|
| 352 |
debug!(
|
| 353 |
step,
|
|
|
|
| 359 |
}
|
| 360 |
|
| 361 |
// Periodic console progress (every 10000 moves)
|
| 362 |
+
if ls_timer.moves_evaluated() % 10000 == 0 {
|
| 363 |
console::print_step_progress(
|
| 364 |
ls_timer.steps_accepted(),
|
| 365 |
ls_timer.elapsed(),
|