diff --git a/pkg/runtime-tools/generate/generate.go b/pkg/runtime-tools/generate/generate.go index 40ed98f..cd2bc28 100644 --- a/pkg/runtime-tools/generate/generate.go +++ b/pkg/runtime-tools/generate/generate.go @@ -329,9 +329,6 @@ func (g *Generator) AdjustCgroupsPath(path string) { func (g *Generator) AdjustOomScoreAdj(score *nri.OptionalInt) { if score != nil { g.SetProcessOOMScoreAdj(int(score.Value)) - } else { - g.SetProcessOOMScoreAdj(0) - g.Config.Process.OOMScoreAdj = nil } }