Commit 66d67ee4 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #33178 from k82cn/remove_unused_var

Automatic merge from submit-queue Removed unused var.
parents 437b55bf 10e88068
...@@ -35,10 +35,6 @@ import ( ...@@ -35,10 +35,6 @@ import (
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
) )
const (
kubeletProcessname = "kubelet"
)
func getOOMScoreForPid(pid int) (int, error) { func getOOMScoreForPid(pid int) (int, error) {
procfsPath := path.Join("/proc", strconv.Itoa(pid), "oom_score_adj") procfsPath := path.Join("/proc", strconv.Itoa(pid), "oom_score_adj")
out, err := exec.Command("sudo", "cat", procfsPath).CombinedOutput() out, err := exec.Command("sudo", "cat", procfsPath).CombinedOutput()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment