Skip to content
Snippets Groups Projects
Commit f5e1058c authored by Johannes Mey's avatar Johannes Mey
Browse files

10 sec pause between runs in stead of run every 10 secs

parent a9e44967
No related branches found
No related tags found
No related merge requests found
...@@ -18,9 +18,17 @@ public class Main { ...@@ -18,9 +18,17 @@ public class Main {
} }
if (continuous) { if (continuous) {
Timer timer = new Timer(); while (true) {
try {
logger.info("Running MQuAT"); logger.info("Running MQuAT");
timer.schedule(new ErisTask(), 0, 10000); new ErisTask().run();
Thread.sleep(10000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
} else { } else {
new ErisTask().run(); new ErisTask().run();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment