Skip to content

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

fixed surrogate process counter

Michael Peter Christen3e6a1e0a49c4
diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java
index ccb63dccd..713591c2b 100644
--- a/source/net/yacy/search/Switchboard.java
+++ b/source/net/yacy/search/Switchboard.java
@@ -2418,7 +2418,13 @@ public final class Switchboard extends serverSwitch {
}
int count = 0;
for ( final String s : surrogatelist ) {
- if ( s.endsWith(".xml") ) {
+ if ( s.endsWith(".xml")
+ || s.endsWith(".xml.gz")
+ || s.endsWith(".xml.zip")
+ || s.endsWith(".warc")
+ || s.endsWith(".warc.gz")
+ || s.endsWith(".jsonlist")
+ || s.endsWith(".flatjson") ) {
count++;
}
if ( count >= 100 ) {