Config: Detect physical CPU cores to limit number of workers

This commit is contained in:
Michael Mayer
2021-01-09 12:18:59 +01:00
parent 507d0957eb
commit dcaf22b329
5 changed files with 18 additions and 7 deletions

View File

@@ -55,7 +55,7 @@ func configAction(ctx *cli.Context) error {
fmt.Printf("%-25s %s\n", "img-path", conf.ImgPath())
fmt.Printf("%-25s %s\n", "templates-path", conf.TemplatesPath())
// Workers.
// Background workers.
fmt.Printf("%-25s %d\n", "workers", conf.Workers())
fmt.Printf("%-25s %d\n", "wakeup-interval", conf.WakeupInterval()/time.Second)
fmt.Printf("%-25s %d\n", "auto-index", conf.AutoIndex()/time.Second)