allow to run on all cores

This commit is contained in:
Philipp Häfelfinger 2019-04-07 23:36:23 +02:00
parent 962660d674
commit 281646b883
1 changed files with 1 additions and 1 deletions

View File

@ -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)