From 2278cc8d4116b97df3882222b276d9e2a73c2ae7 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 22 Feb 2012 08:13:16 +0000 Subject: [PATCH] * check for updates only once per day --- source/net/sourceforge/filebot/Main.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/net/sourceforge/filebot/Main.java b/source/net/sourceforge/filebot/Main.java index d2c174e1..0dd83334 100644 --- a/source/net/sourceforge/filebot/Main.java +++ b/source/net/sourceforge/filebot/Main.java @@ -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 updateIgnoreRevision = Settings.forPackage(Main.class).entry("update.revision.ignore"); - final Properties updateProperties = new CachedResource(getApplicationProperty("update.url"), Properties.class, DAYS.toMillis(0)) { + final Properties updateProperties = new CachedResource(getApplicationProperty("update.url"), Properties.class, 24 * 60 * 60 * 1000) { @Override public Properties process(ByteBuffer data) {