1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-06 01:10:15 +00:00

go mod and vendor changes

This commit is contained in:
rajashree
2020-02-18 11:17:29 -08:00
parent 4e38cdf825
commit 7e603d411a
404 changed files with 55774 additions and 53750 deletions

View File

@@ -15,8 +15,8 @@ package procfs
import (
"fmt"
"io/ioutil"
"os"
"github.com/prometheus/procfs/internal/util"
)
// ProcIO models the content of /proc/<pid>/io.
@@ -43,13 +43,7 @@ type ProcIO struct {
func (p Proc) IO() (ProcIO, error) {
pio := ProcIO{}
f, err := os.Open(p.path("io"))
if err != nil {
return pio, err
}
defer f.Close()
data, err := ioutil.ReadAll(f)
data, err := util.ReadFileNoStat(p.path("io"))
if err != nil {
return pio, err
}