Adjust update/download warning threshold
This commit is contained in:
@@ -265,7 +265,9 @@ class LibraryUpdateService(
|
||||
.distinctBy { it.id }
|
||||
.sortedWith(rankingScheme[selectedScheme])
|
||||
|
||||
if (mangaToUpdate.size > QUEUE_SIZE_WARNING_THRESHOLD) {
|
||||
// Warn when excessively checking a single source
|
||||
val maxUpdatesFromSource = mangaToUpdate.groupBy { it.source }.maxOf { it.value.size }
|
||||
if (maxUpdatesFromSource > PER_SOURCE_QUEUE_WARNING_THRESHOLD) {
|
||||
notifier.showQueueSizeWarningNotification()
|
||||
}
|
||||
}
|
||||
@@ -572,4 +574,4 @@ class LibraryUpdateService(
|
||||
}
|
||||
}
|
||||
|
||||
const val QUEUE_SIZE_WARNING_THRESHOLD = 100
|
||||
const val PER_SOURCE_QUEUE_WARNING_THRESHOLD = 50
|
||||
|
||||
Reference in New Issue
Block a user