We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b158919 commit 7235bfbCopy full SHA for 7235bfb
agent/agentexec/exec.go
@@ -69,15 +69,18 @@ func envValInt(key string) (int, bool) {
69
return i, true
70
}
71
72
+// The following are flags used by the agent-exec command. We use flags instead of
73
+// environment variables to avoid having to deal with a caller overriding the
74
+// environment variables.
75
const (
- niceArg = "coder-nice"
- oomArg = "coder-oom"
76
+ niceFlag = "coder-nice"
77
+ oomFlag = "coder-oom"
78
)
79
80
func niceScoreArg(score int) string {
- return fmt.Sprintf("--%s=%d", niceArg, score)
81
+ return fmt.Sprintf("--%s=%d", niceFlag, score)
82
83
84
func oomScoreArg(score int) string {
- return fmt.Sprintf("--%s=%d", oomArg, score)
85
+ return fmt.Sprintf("--%s=%d", oomFlag, score)
86
0 commit comments