Skip to content

Commit

Permalink
Log queued downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
schroda committed Jul 16, 2023
1 parent a5a5b9a commit fce7a01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ object DownloadManager {
scope.launch {
downloaderWatch.sample(1.seconds).collect {
val runningDownloaders = downloaders.values.filter { it.isActive }
logger.info { "Running: ${runningDownloaders.size}" }
logger.info { "Running: ${runningDownloaders.size}, Queued: ${downloadQueue.size}" }
if (runningDownloaders.size < MAX_SOURCES_IN_PARAllEL) {
downloadQueue.asSequence()
.map { it.manga.sourceId.toLong() }
Expand Down

0 comments on commit fce7a01

Please sign in to comment.