git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change config bundle to better work with new nikiroo-utils
[fanfix.git]
/
src
/
be
/
nikiroo
/
fanfix
/
Instance.java
diff --git
a/src/be/nikiroo/fanfix/Instance.java
b/src/be/nikiroo/fanfix/Instance.java
index 96d5d6f9a3031124cce38f8d59f81ea53138df2e..2479c612dc45b97cf224158c36640c88721ecc42 100644
(file)
--- a/
src/be/nikiroo/fanfix/Instance.java
+++ b/
src/be/nikiroo/fanfix/Instance.java
@@
-114,11
+114,10
@@
public class Instance {
// Could have used: System.getProperty("java.io.tmpdir")
tmp = new File(configDir, "tmp");
}
// Could have used: System.getProperty("java.io.tmpdir")
tmp = new File(configDir, "tmp");
}
- String ua = config.getString(Config.USER_AGENT);
+ String ua = config.getString(Config.USER_AGENT
, ""
);
try {
try {
- int hours = config.getInteger(Config.CACHE_MAX_TIME_CHANGING, -1);
- int hoursLarge = config
- .getInteger(Config.CACHE_MAX_TIME_STABLE, -1);
+ int hours = config.getInteger(Config.CACHE_MAX_TIME_CHANGING, 0);
+ int hoursLarge = config.getInteger(Config.CACHE_MAX_TIME_STABLE, 0);
cache = new DataLoader(tmp, ua, hours, hoursLarge);
} catch (IOException e) {
tracer.error(new IOException(
cache = new DataLoader(tmp, ua, hours, hoursLarge);
} catch (IOException e) {
tracer.error(new IOException(
@@
-332,7
+331,7
@@
public class Instance {
*/
public static boolean isVersionCheckNeeded() {
try {
*/
public static boolean isVersionCheckNeeded() {
try {
- long wait = config.getInteger(Config.UPDATE_INTERVAL,
1
) * 24 * 60
+ long wait = config.getInteger(Config.UPDATE_INTERVAL,
0
) * 24 * 60
* 60 * 1000;
if (wait >= 0) {
String lastUpString = IOUtils.readSmallFile(new File(configDir,
* 60 * 1000;
if (wait >= 0) {
String lastUpString = IOUtils.readSmallFile(new File(configDir,