fix: correct variable name

This commit is contained in:
Jose Diaz-Gonzalez
2019-03-13 18:21:33 -04:00
parent ff35e95924
commit b36ab54b87
2 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ import (
func main() {
args := flag.NewFlagSet("resource:limit", flag.ExitOnError)
processeType := args.String("process-type", "", "process-type: A process type to manage")
processType := args.String("process-type", "", "process-type: A process type to manage")
cpu := args.String("cpu", "", "cpu: The amount of cpu to limit processes by")
memory := args.String("memory", "", "memory: The amount of memory to limit processes by")
memorySwap := args.String("memory-swap", "", "memory-swap: The amount of swap memory to limit processes by")
@@ -28,7 +28,7 @@ func main() {
NetworkEgress: *networkEgress,
}
err := resource.CommandLimit(args.Args(), *processeType, resources)
err := resource.CommandLimit(args.Args(), *processType, resources)
if err != nil {
common.LogFail(err.Error())
}

View File

@@ -10,7 +10,7 @@ import (
func main() {
args := flag.NewFlagSet("resource:reserve", flag.ExitOnError)
processeType := args.String("process-type", "", "process-type: A process type to manage")
processType := args.String("process-type", "", "process-type: A process type to manage")
cpu := args.String("cpu", "", "cpu: The amount of cpu to reserve for processes")
memory := args.String("memory", "", "memory: The amount of memory to reserve for processes")
memorySwap := args.String("memory-swap", "", "memory-swap: The amount of swap memory to reserve for processes")
@@ -28,7 +28,7 @@ func main() {
NetworkEgress: *networkEgress,
}
err := resource.CommandReserve(args.Args(), *processeType, resources)
err := resource.CommandReserve(args.Args(), *processType, resources)
if err != nil {
common.LogFail(err.Error())
}