Skip to content

Commit b5fc359

Browse files
committed
generate: do not set OOMScoreAdj if no adjustment
Existing OOMScoreAdj on the incoming spec should not be cleared. Fixes #117 Signed-off-by: Samuel Karp <samuelkarp@google.com>
1 parent 44ecabb commit b5fc359

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/runtime-tools/generate/generate.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,6 @@ func (g *Generator) AdjustCgroupsPath(path string) {
329329
func (g *Generator) AdjustOomScoreAdj(score *nri.OptionalInt) {
330330
if score != nil {
331331
g.SetProcessOOMScoreAdj(int(score.Value))
332-
} else {
333-
g.SetProcessOOMScoreAdj(0)
334-
g.Config.Process.OOMScoreAdj = nil
335332
}
336333
}
337334

0 commit comments

Comments
 (0)