Skip to content

Commit

Permalink
Merge pull request #187 from jzwlqx/bugfix/typo
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
Lyt99 authored Feb 7, 2024
2 parents e85b954 + 73fd8a3 commit ee4e742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/exporter/probe/procio/procio.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func getAllProcessIO(nslist []*nettop.Entity) (map[uint32][]procfs.ProcIO, error
nslogic := nslist[idx]
prociolist := []procfs.ProcIO{}
for _, indx := range nslogic.GetPids() {
iodata, err := getProccessIoStat(indx)
iodata, err := getProcessIOStat(indx)
if err != nil {
continue
}
Expand All @@ -98,7 +98,7 @@ func getAllProcessIO(nslist []*nettop.Entity) (map[uint32][]procfs.ProcIO, error
}

// IO creates a new ProcIO instance from a given Proc instance.
func getProccessIoStat(pid int) (procfs.ProcIO, error) {
func getProcessIOStat(pid int) (procfs.ProcIO, error) {
pio := procfs.ProcIO{}

data, err := ReadFileNoStat(fmt.Sprintf("/proc/%d/io", pid))
Expand Down

0 comments on commit ee4e742

Please sign in to comment.