From b1c4ab05a3688268f1c33ad49499ad081bd34d55 Mon Sep 17 00:00:00 2001 From: "opoeschl@hs-mittweida.de" Date: Sun, 7 Jan 2024 12:22:41 +0100 Subject: [PATCH] bugfix: accidentally removed updateInterval int prev commit --- src/main/java/de/nqueensfaf/Solver.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/de/nqueensfaf/Solver.java b/src/main/java/de/nqueensfaf/Solver.java index 69c5a402..0ebeb2c5 100644 --- a/src/main/java/de/nqueensfaf/Solver.java +++ b/src/main/java/de/nqueensfaf/Solver.java @@ -140,6 +140,12 @@ else if (progress >= tmpProgress + config().autoSavePercentageStep) { tmpProgress = progress; } } + + try { + Thread.sleep(config().updateInterval); + } catch (InterruptedException e) { + // ignore + } } if(autoSaver) {