Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-05-17 10:16:23 +0000
committerEike Stepper2010-05-17 10:16:23 +0000
commit25d82352c77797014c41ef21c82207548dcaf41d (patch)
tree75d5b292826e62fb44314bc5f6031ee6e26be403 /plugins/org.eclipse.emf.cdo.examples.server
parentc5518cf08d6cd54cf7c645a53dc2bce3f9ed8d7b (diff)
downloadcdo-25d82352c77797014c41ef21c82207548dcaf41d.tar.gz
cdo-25d82352c77797014c41ef21c82207548dcaf41d.tar.xz
cdo-25d82352c77797014c41ef21c82207548dcaf41d.zip
vserver
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.examples.server')
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.server/src/org/eclipse/emf/cdo/examples/server/DemoConfiguration.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.server/src/org/eclipse/emf/cdo/examples/server/DemoServer.java4
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples.server/src/org/eclipse/emf/cdo/examples/server/DemoConfiguration.java b/plugins/org.eclipse.emf.cdo.examples.server/src/org/eclipse/emf/cdo/examples/server/DemoConfiguration.java
index 432ae84060..6881cecb03 100644
--- a/plugins/org.eclipse.emf.cdo.examples.server/src/org/eclipse/emf/cdo/examples/server/DemoConfiguration.java
+++ b/plugins/org.eclipse.emf.cdo.examples.server/src/org/eclipse/emf/cdo/examples/server/DemoConfiguration.java
@@ -117,7 +117,7 @@ public class DemoConfiguration extends Lifecycle
public synchronized long getTimeoutMillis()
{
long idleTime = System.currentTimeMillis() - lastAccess;
- long time = DemoServer.MAX_IDLE_TIME - idleTime;
+ long time = DemoServer.MAX_IDLE_MILLIS - idleTime;
if (time < 0)
{
time = 0;
diff --git a/plugins/org.eclipse.emf.cdo.examples.server/src/org/eclipse/emf/cdo/examples/server/DemoServer.java b/plugins/org.eclipse.emf.cdo.examples.server/src/org/eclipse/emf/cdo/examples/server/DemoServer.java
index a5dc50ef4b..d81b4d8d40 100644
--- a/plugins/org.eclipse.emf.cdo.examples.server/src/org/eclipse/emf/cdo/examples/server/DemoServer.java
+++ b/plugins/org.eclipse.emf.cdo.examples.server/src/org/eclipse/emf/cdo/examples/server/DemoServer.java
@@ -34,7 +34,9 @@ public class DemoServer extends Lifecycle
public static final int PORT = 3003;
- public static final long MAX_IDLE_TIME = 1 * 60 * 1000;
+ public static final int MAX_IDLE_MINUTES = 15;
+
+ public static final long MAX_IDLE_MILLIS = MAX_IDLE_MINUTES * 60 * 1000;
public static final DemoServer INSTANCE = new DemoServer();

Back to the top