Skip to content

Commit

Permalink
fix(mem): Correct capitalization of linux writeback
Browse files Browse the repository at this point in the history
fixes: #1471
  • Loading branch information
powersj committed May 24, 2023
1 parent 7c610c5 commit d71f002
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 d71f002

Please sign in to comment.