Skip to content

Commit e3b311b

Browse files
author
Lorenz Kästle
committed
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.
1 parent b9c0e57 commit e3b311b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/memory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func computeMemResults(config *memory.MemConfig, memStats *memory.Mem) result.Pa
214214

215215
MemUsedPercentage := float64(memStats.VirtMem.Used) / (float64(memStats.VirtMem.Total) / 100)
216216
pdMemUsedPercentage := perfdata.Perfdata{
217-
Label: "free_memory_percentage",
217+
Label: "used_memory_percentage",
218218
Value: MemUsedPercentage,
219219
Uom: "%",
220220
}

0 commit comments

Comments
 (0)