mirror of
https://github.com/status-im/consul.git
synced 2025-01-14 15:54:40 +00:00
command/info: Warn on GOMAXPROCS = 1. Fixes #87.
This commit is contained in:
parent
2c45bd6fe9
commit
1727b1a086
@ -73,6 +73,14 @@ func (i *InfoCommand) Run(args []string) int {
|
|||||||
i.Ui.Output(fmt.Sprintf("\t%s = %s", subkey, val))
|
i.Ui.Output(fmt.Sprintf("\t%s = %s", subkey, val))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check for specific warnings
|
||||||
|
runtime, ok := stats["runtime"]
|
||||||
|
if ok {
|
||||||
|
if maxprocs := runtime["max_procs"]; maxprocs == "1" {
|
||||||
|
i.Ui.Output("WARNING: It is highly recommended to set GOMAXPROCS higher than 1")
|
||||||
|
}
|
||||||
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user