Skip to content

Commit

Permalink
Merge pull request #1472 from powersj/fix/writeback
Browse files Browse the repository at this point in the history
fix(mem): Correct capitalization of linux writeback
  • Loading branch information
shirou authored May 25, 2023
2 parents 194e6e2 + d71f002 commit 03ae19b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mem/mem_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,13 @@ func fillFromMeminfoWithContext() (*VirtualMemoryStat, *VirtualMemoryExStat, err
return ret, retEx, err
}
retEx.Unevictable = t * 1024
case "WriteBack":
case "Writeback":
t, err := strconv.ParseUint(value, 10, 64)
if err != nil {
return ret, retEx, err
}
ret.WriteBack = t * 1024
case "WriteBackTmp":
case "WritebackTmp":
t, err := strconv.ParseUint(value, 10, 64)
if err != nil {
return ret, retEx, err
Expand Down

0 comments on commit 03ae19b

Please sign in to comment.