From 6ae30f9d0f65ce4d90253cb40a150270c4e23aab Mon Sep 17 00:00:00 2001 From: reger Date: Sun, 10 Mar 2013 05:22:18 +0100 Subject: [PATCH] replace the terminateOldSessions - return immediate time from fixed 3 sec to requested minage parameter --- source/net/yacy/server/serverCore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/server/serverCore.java b/source/net/yacy/server/serverCore.java index 19419af5c..0e351d122 100644 --- a/source/net/yacy/server/serverCore.java +++ b/source/net/yacy/server/serverCore.java @@ -139,7 +139,7 @@ public final class serverCore extends AbstractBusyThread implements BusyThread { private long lastAutoTermination; public final void terminateOldSessions(final long minage) { - if (System.currentTimeMillis() - this.lastAutoTermination < 3000) return; + if (System.currentTimeMillis() - this.lastAutoTermination < minage) return; this.lastAutoTermination = System.currentTimeMillis(); //if (serverCore.getJobCount() < maxBusySessions - 10) return; // don't panic