fix idle property names

This commit is contained in:
zzz
2009-02-06 15:45:34 +00:00
parent bdf7dda3b4
commit e7bccb2f47

View File

@ -56,7 +56,7 @@ public class SessionIdleTimer implements SimpleTimer.TimedEvent {
} catch (NumberFormatException nfe) {} } catch (NumberFormatException nfe) {}
} }
_reduceTime = DEFAULT_REDUCE_TIME; _reduceTime = DEFAULT_REDUCE_TIME;
p = props.getProperty("i2cp.reduceTime"); p = props.getProperty("i2cp.reduceIdleTime");
if (p != null) { if (p != null) {
try { try {
_reduceTime = Math.max(Long.parseLong(p), MINIMUM_TIME); _reduceTime = Math.max(Long.parseLong(p), MINIMUM_TIME);
@ -66,7 +66,7 @@ public class SessionIdleTimer implements SimpleTimer.TimedEvent {
} }
if (shutdown) { if (shutdown) {
_shutdownTime = DEFAULT_CLOSE_TIME; _shutdownTime = DEFAULT_CLOSE_TIME;
String p = props.getProperty("i2cp.closeTime"); String p = props.getProperty("i2cp.closeIdleTime");
if (p != null) { if (p != null) {
try { try {
_shutdownTime = Math.max(Long.parseLong(p), MINIMUM_TIME); _shutdownTime = Math.max(Long.parseLong(p), MINIMUM_TIME);