Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

allow custom ppm lower than minimum button on /Crawler_p.html fixes http://bugs.yacy.net/view.php?id=166

Lotus0b3f39136e5e
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;