From 281646b883350f9259dc579e0d53e1f60fc7db74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Sun, 7 Apr 2019 23:36:23 +0200 Subject: [PATCH] allow to run on all cores --- internal/pkg/images/synchronizeLocalFiles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/images/synchronizeLocalFiles.go b/internal/pkg/images/synchronizeLocalFiles.go index 7e3b873..937f67c 100644 --- a/internal/pkg/images/synchronizeLocalFiles.go +++ b/internal/pkg/images/synchronizeLocalFiles.go @@ -50,7 +50,7 @@ func synchronizeLocalImageMetadataScanNewFiles(fileSystemNodes map[string]*local logrus.Debug("Starting change detection producer") go checkFileForChangesProducer(fileSystemNodes, workQueue, &wg) - for i := 0; i < runtime.NumCPU()-1; i++ { + for i := 0; i < runtime.NumCPU(); i++ { logrus.Debugf("Starting image change detection worker %d", i) wg.Add(1) go checkFileForChangesWorker(workQueue, &wg, imageDb, categoryDb, checksumCalculator)