From d71f0022a12a981442e245cfb8d962e9c00ff8b6 Mon Sep 17 00:00:00 2001 From: Josh Powers Date: Wed, 24 May 2023 08:03:03 -0600 Subject: [PATCH] fix(mem): Correct capitalization of linux writeback fixes: #1471 --- mem/mem_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mem/mem_linux.go b/mem/mem_linux.go index 56fb1cc6c..059518dc5 100644 --- a/mem/mem_linux.go +++ b/mem/mem_linux.go @@ -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