1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* check for updates only once per day

This commit is contained in:
Reinhard Pointner 2012-02-22 08:13:16 +00:00
parent f9f7124ed7
commit 2278cc8d41

View File

@ -3,7 +3,6 @@ package net.sourceforge.filebot;
import static java.awt.GraphicsEnvironment.*;
import static java.util.concurrent.TimeUnit.*;
import static javax.swing.JFrame.*;
import static net.sourceforge.filebot.Settings.*;
import static net.sourceforge.tuned.ui.TunedUtilities.*;
@ -174,7 +173,7 @@ public class Main {
*/
private static void checkUpdate() throws Exception {
final PreferencesEntry<String> updateIgnoreRevision = Settings.forPackage(Main.class).entry("update.revision.ignore");
final Properties updateProperties = new CachedResource<Properties>(getApplicationProperty("update.url"), Properties.class, DAYS.toMillis(0)) {
final Properties updateProperties = new CachedResource<Properties>(getApplicationProperty("update.url"), Properties.class, 24 * 60 * 60 * 1000) {
@Override
public Properties process(ByteBuffer data) {