Print why we are only using one core

This commit is contained in:
Chris Lundquist 2018-07-25 02:27:51 +00:00
parent a9d48eb492
commit ce1a5b7d7a
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac
output, err = makeLZ4Writer(outputFile, p.config.CompressionLevel)
defer output.Close()
case "xz":
ui.Say(fmt.Sprintf("Using xz compression with %d cores for %s",
runtime.GOMAXPROCS(-1), target))
ui.Say(fmt.Sprintf("Using xz compression with 1 core for %s (library does not support MT)",
target))
output, err = makeXZWriter(outputFile, p.config.CompressionLevel)
defer output.Close()
case "pgzip":