rename cpu_total_compute and docs

This commit is contained in:
Alex Dadgar
2017-03-14 14:15:49 -07:00
parent 1cafa19d00
commit bfebe1afdc
6 changed files with 11 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ client {
}
network_interface = "eth0"
network_speed = 100
cpu_compute = 4444
cpu_total_compute = 4444
reserved {
cpu = 10
memory = 10

View File

@@ -183,7 +183,7 @@ type ClientConfig struct {
NetworkSpeed int `mapstructure:"network_speed"`
// CpuCompute is used to override any detected or default total CPU compute.
CpuCompute int `mapstructure:"cpu_compute"`
CpuCompute int `mapstructure:"cpu_total_compute"`
// MaxKillTimeout allows capping the user-specifiable KillTimeout.
MaxKillTimeout string `mapstructure:"max_kill_timeout"`

View File

@@ -336,7 +336,7 @@ func parseClient(result **ClientConfig, list *ast.ObjectList) error {
"chroot_env",
"network_interface",
"network_speed",
"cpu_compute",
"cpu_total_compute",
"max_kill_timeout",
"client_max_port",
"client_min_port",