Faster timer for checking updates after restart
This commit is contained in:
		| @@ -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 { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user