From 31842f6f790dcc98fbb8336cd51cc97933e9e600 Mon Sep 17 00:00:00 2001 From: Gaius Date: Thu, 23 Feb 2023 16:46:35 +0800 Subject: [PATCH] fix: parseVMStatNUMA return wrong VMStat in nr_zone_inactive_file Signed-off-by: Gaius --- sysfs/vmstat_numa.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysfs/vmstat_numa.go b/sysfs/vmstat_numa.go index 8a6d09595..038a0ee3b 100644 --- a/sysfs/vmstat_numa.go +++ b/sysfs/vmstat_numa.go @@ -145,7 +145,7 @@ func parseVMStatNUMA(r []byte) (VMStat, error) { case "nr_zone_active_anon": vmStat.NrZoneActiveAnon = fv case "nr_zone_inactive_file": - vmStat.NrZoneActiveFile = fv + vmStat.NrZoneInactiveFile = fv case "nr_zone_active_file": vmStat.NrZoneActiveFile = fv case "nr_zone_unevictable":