Merge pull request #701 from vadmeste/pr_out_fix_sync_cmd_with_single_core

Fix sync cmd with single CPU core
This commit is contained in:
Harshavardhana
2015-05-27 11:28:49 -07:00
+1 -1
View File
@@ -71,7 +71,7 @@ func runSyncCmd(ctx *cli.Context) {
}
}(sourceURL, targetURLs)
var syncQueue = make(chan bool, runtime.NumCPU()-1)
var syncQueue = make(chan bool, intMax(runtime.NumCPU()-1, 1))
var wg sync.WaitGroup
for syncURLs := range prepareSyncURLs(sourceURL, targetURLs) {