From e3b311bc91ebfae61a5ebc666845e430941a9053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20K=C3=A4stle?= Date: Mon, 27 May 2024 09:48:13 +0200 Subject: [PATCH] Fix percentage performance data for used memory This changes the label of an optional performance data value which to the correct string, which is an error resulting from copy and pasting another section. --- cmd/memory.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/memory.go b/cmd/memory.go index 04fb251..52ff624 100644 --- a/cmd/memory.go +++ b/cmd/memory.go @@ -214,7 +214,7 @@ func computeMemResults(config *memory.MemConfig, memStats *memory.Mem) result.Pa MemUsedPercentage := float64(memStats.VirtMem.Used) / (float64(memStats.VirtMem.Total) / 100) pdMemUsedPercentage := perfdata.Perfdata{ - Label: "free_memory_percentage", + Label: "used_memory_percentage", Value: MemUsedPercentage, Uom: "%", }