Skip to content

Commit

Permalink
Fix initial idle wait
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Turov committed Apr 21, 2022
1 parent 4250191 commit a75c35f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class ProcessWrapper {
private final int outputDiffHistoryMax = 2;

private boolean initialIdleWait = true;
private int initialIdleWaitTime = 150;

@Getter @Setter boolean checkEarlyFinish = false;
@Getter @Setter boolean registerOutput = true;
Expand Down Expand Up @@ -227,6 +228,13 @@ private void checkCpuLoad() {

sleep(10);
checkAlive();

if (initialIdleWait) {
initialIdleWaitTime--;
if (initialIdleWaitTime == 0) {
initialIdleWait = false;
}
}
}
}

Expand Down

0 comments on commit a75c35f

Please sign in to comment.