limit batch size

This commit is contained in:
Athou
2013-07-05 11:03:56 +02:00
parent fa3860f81a
commit 1e36564ff8

View File

@@ -134,7 +134,7 @@ public class FeedRefreshTaskGiver {
private void refill() { private void refill() {
Date now = new Date(); Date now = new Date();
int count = 3 * backgroundThreads; int count = Math.min(100, 3 * backgroundThreads);
List<Feed> feeds = null; List<Feed> feeds = null;
if (applicationSettingsService.get().isCrawlingPaused()) { if (applicationSettingsService.get().isCrawlingPaused()) {
feeds = Lists.newArrayList(); feeds = Lists.newArrayList();