From 3e6a1e0a49c417f4cc0f9ec5c5b7ea1977c86002 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Mon, 28 Dec 2020 18:26:22 +0100 Subject: [PATCH] fixed surrogate process counter --- source/net/yacy/search/Switchboard.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 ) {