diff --git a/meminfo.go b/meminfo.go index ec00a624..0016273c 100644 --- a/meminfo.go +++ b/meminfo.go @@ -184,10 +184,6 @@ type Meminfo struct { ShmemPmdMappedBytes *uint64 CmaTotalBytes *uint64 CmaFreeBytes *uint64 - HugePagesTotalBytes *uint64 - HugePagesFreeBytes *uint64 - HugePagesRsvdBytes *uint64 - HugePagesSurpBytes *uint64 HugepagesizeBytes *uint64 DirectMap4kBytes *uint64 DirectMap2MBytes *uint64 @@ -363,19 +359,14 @@ func parseMemInfo(r io.Reader) (*Meminfo, error) { m.CmaFreeBytes = &valBytes case "HugePages_Total:": m.HugePagesTotal = &val - m.HugePagesTotalBytes = &valBytes case "HugePages_Free:": m.HugePagesFree = &val - m.HugePagesFreeBytes = &valBytes case "HugePages_Rsvd:": m.HugePagesRsvd = &val - m.HugePagesRsvdBytes = &valBytes case "HugePages_Surp:": m.HugePagesSurp = &val - m.HugePagesSurpBytes = &valBytes case "Hugepagesize:": m.Hugepagesize = &val - m.HugepagesizeBytes = &valBytes case "DirectMap4k:": m.DirectMap4k = &val m.DirectMap4kBytes = &valBytes diff --git a/meminfo_test.go b/meminfo_test.go index 5a4b761f..2d2b238e 100644 --- a/meminfo_test.go +++ b/meminfo_test.go @@ -98,10 +98,6 @@ func TestMeminfo(t *testing.T) { VmallocChunkBytes: newuint64(35184269148160), HardwareCorruptedBytes: newuint64(0), AnonHugePagesBytes: newuint64(12582912), - HugePagesTotalBytes: newuint64(0), - HugePagesFreeBytes: newuint64(0), - HugePagesRsvdBytes: newuint64(0), - HugePagesSurpBytes: newuint64(0), HugepagesizeBytes: newuint64(2097152), DirectMap4kBytes: newuint64(93323264), DirectMap2MBytes: newuint64(16424894464),