From 0b3f39136e5e89a3c5a834f5ab342ad0b29294ac Mon Sep 17 00:00:00 2001 From: Lotus Date: Sat, 17 Mar 2012 20:43:19 +0100 Subject: [PATCH] allow custom ppm lower than minimum button on /Crawler_p.html fixes http://bugs.yacy.net/view.php?id=166 --- source/net/yacy/search/Switchboard.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java index 87bf68729..c66845dd2 100644 --- a/source/net/yacy/search/Switchboard.java +++ b/source/net/yacy/search/Switchboard.java @@ -2936,10 +2936,10 @@ public final class Switchboard extends serverSwitch int wPPM = wantedPPM; // we consider 3 cases here // wantedPPM <= 10: low performance - // 10 < wantedPPM < 1000: custom performance - // 1000 <= wantedPPM : maximum performance - if ( wPPM <= 10 ) { - wPPM = 10; + // 10 < wantedPPM < 30000: custom performance + // 30000 <= wantedPPM : maximum performance + if ( wPPM <= 0 ) { + wPPM = 1; } if ( wPPM >= 30000 ) { wPPM = 30000;