From c131283a1d98ea34f0be03b1a986cf9d51e0c1be Mon Sep 17 00:00:00 2001 From: Bryan Stenson Date: Thu, 9 Sep 2021 21:33:21 +0200 Subject: [PATCH] Ref: rename variable to avoid confusion --- src/com/sheepit/client/Client.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/sheepit/client/Client.java b/src/com/sheepit/client/Client.java index 66736d3..58bc315 100644 --- a/src/com/sheepit/client/Client.java +++ b/src/com/sheepit/client/Client.java @@ -360,11 +360,11 @@ import lombok.Data; } if (this.renderingJob == null) { // no job - int[] retrySchemeInSeconds = { 300000, 480000, 720000, 900000, 1200000 }; // 5, 8, 12, 15 and 20 minutes + int[] retrySchemeInMilliSeconds = { 300000, 480000, 720000, 900000, 1200000 }; // 5, 8, 12, 15 and 20 minutes - int time_sleep = retrySchemeInSeconds[(this.noJobRetryIter < retrySchemeInSeconds.length) ? + int time_sleep = retrySchemeInMilliSeconds[(this.noJobRetryIter < retrySchemeInMilliSeconds.length) ? this.noJobRetryIter++ : - (retrySchemeInSeconds.length - 1)]; + (retrySchemeInMilliSeconds.length - 1)]; this.gui.status(String.format("No job available. Will try again at %tR", new Date(new Date().getTime() + time_sleep))); int time_slept = 0; while (time_slept < time_sleep && this.running == true && !this.shuttingdown) {