From b2ffd498170e65a8e92efe21fae0c40fa5504370 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Tue, 30 Oct 2012 12:26:32 +0100 Subject: [PATCH] less latency --- source/net/yacy/crawler/data/Latency.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/net/yacy/crawler/data/Latency.java b/source/net/yacy/crawler/data/Latency.java index c152b70b0..34227ce30 100644 --- a/source/net/yacy/crawler/data/Latency.java +++ b/source/net/yacy/crawler/data/Latency.java @@ -134,7 +134,7 @@ public class Latency { // use the access latency as rule how fast we can access the server // this applies also to localhost, but differently, because it is not necessary to // consider so many external accesses - waiting = Math.max(waiting, host.average() * 2); + waiting = Math.max(waiting, host.average() * 3 / 2); return Math.min(60000, waiting) - timeSinceLastAccess; } @@ -171,7 +171,7 @@ public class Latency { // use the access latency as rule how fast we can access the server // this applies also to localhost, but differently, because it is not necessary to // consider so many external accesses - waiting = Math.max(waiting, host.average() * 2); + waiting = Math.max(waiting, host.average() * 3 / 2); // the time since last access to the domain is the basis of the remaining calculation final int timeSinceLastAccess = (int) (System.currentTimeMillis() - host.lastacc()); @@ -211,7 +211,7 @@ public class Latency { // this applies also to localhost, but differently, because it is not necessary to // consider so many external accesses s.append(", host.average = ").append(host.average()); - waiting = Math.max(waiting, host.average() * 2); + waiting = Math.max(waiting, host.average() * 3 / 2); // find the delay as given by robots.txt on target site int robotsDelay = waitingRobots(url, robots, thisAgents);