mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 16:06:51 +00:00
Change Oom to OOM
This commit is contained in:
@@ -19,8 +19,8 @@ package oom
|
||||
// This is a struct instead of an interface to allow injection of process ID listers and
|
||||
// applying OOM score in tests.
|
||||
// TODO: make this an interface, and inject a mock ioutil struct for testing.
|
||||
type OomAdjuster struct {
|
||||
type OOMAdjuster struct {
|
||||
pidLister func(cgroupName string) ([]int, error)
|
||||
ApplyOomScoreAdj func(pid int, oomScoreAdj int) error
|
||||
ApplyOomScoreAdjContainer func(cgroupName string, oomScoreAdj, maxTries int) error
|
||||
ApplyOOMScoreAdj func(pid int, oomScoreAdj int) error
|
||||
ApplyOOMScoreAdjContainer func(cgroupName string, oomScoreAdj, maxTries int) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user