fix: correct variable name
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
args := flag.NewFlagSet("resource:limit", flag.ExitOnError)
|
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")
|
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")
|
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")
|
memorySwap := args.String("memory-swap", "", "memory-swap: The amount of swap memory to limit processes by")
|
||||||
@@ -28,7 +28,7 @@ func main() {
|
|||||||
NetworkEgress: *networkEgress,
|
NetworkEgress: *networkEgress,
|
||||||
}
|
}
|
||||||
|
|
||||||
err := resource.CommandLimit(args.Args(), *processeType, resources)
|
err := resource.CommandLimit(args.Args(), *processType, resources)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
common.LogFail(err.Error())
|
common.LogFail(err.Error())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
args := flag.NewFlagSet("resource:reserve", flag.ExitOnError)
|
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")
|
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")
|
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")
|
memorySwap := args.String("memory-swap", "", "memory-swap: The amount of swap memory to reserve for processes")
|
||||||
@@ -28,7 +28,7 @@ func main() {
|
|||||||
NetworkEgress: *networkEgress,
|
NetworkEgress: *networkEgress,
|
||||||
}
|
}
|
||||||
|
|
||||||
err := resource.CommandReserve(args.Args(), *processeType, resources)
|
err := resource.CommandReserve(args.Args(), *processType, resources)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
common.LogFail(err.Error())
|
common.LogFail(err.Error())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user