Faster timer for checking updates after restart

This commit is contained in:
libraryaddict 2020-07-13 20:23:52 +12:00
parent 4887491f10
commit 976357aa28

View File

@ -316,6 +316,11 @@ public class DisguiseConfig {
long timeSinceLast = System.currentTimeMillis() - (getLastUpdateRequest() + TimeUnit.HOURS.toMillis(6)); long timeSinceLast = System.currentTimeMillis() - (getLastUpdateRequest() + TimeUnit.HOURS.toMillis(6));
// Change timer to 30 min if longer than that
if (timeSinceLast > TimeUnit.MINUTES.toMillis(30)) {
timeSinceLast = TimeUnit.MINUTES.toMillis(30);
}
if (timeSinceLast > 0) { if (timeSinceLast > 0) {
timeSinceLast /= 50; timeSinceLast /= 50;
} else { } else {