Skip to content

Commit

Permalink
trying to solve problem
Browse files Browse the repository at this point in the history
  • Loading branch information
rgudwin committed Apr 18, 2024
1 parent b25c6bd commit be6a0a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ public void proc() {
//while(ts == output.getTimestamp()) System.out.print(".");
long startwait = System.currentTimeMillis();
long amountwait=0;
while(ts == output.getTimestamp()) {
while(ts == output.getTimestamp() && amountwait < 10000) {
try{Thread.sleep(100);}catch(Exception e){};
amountwait = System.currentTimeMillis() - startwait;
if (amountwait > 2000) {
Expand All @@ -466,7 +466,7 @@ public void proc() {
ts = output.getTimestamp();
startwait = System.currentTimeMillis();
amountwait = 0;
while(ts == output.getTimestamp()) {
while(ts == output.getTimestamp() && amountwait < 10000) {
try{Thread.sleep(400);}catch(Exception e){};
amountwait = System.currentTimeMillis() - startwait;
if (amountwait > 2000) {
Expand Down

0 comments on commit be6a0a6

Please sign in to comment.