Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Report waiting time
  • Loading branch information
egonw committed Aug 23, 2011
1 parent 5a0d98c commit 2128a3d
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -61,7 +61,9 @@ public static String calculate(String service, String descriptor, String dataSet
while (!state.isFinished()) {
// let's be friendly, and wait 2 secs and a bit and increase
// that time after each wait
Thread.sleep(andABit(2000*tailing));
int waitingTime = andABit(2000*tailing);
logger.debug("Waiting " + waitingTime + "ms.");
Thread.sleep(waitingTime);
state = Task.getState(task);
if (state.isRedirected()) {
task = state.getResults();
Expand Down

0 comments on commit 2128a3d

Please sign in to comment.