Skip to content

Commit

Permalink
Fix percentage performance data for used memory
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Lorenz Kästle committed May 27, 2024
1 parent b9c0e57 commit e3b311b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -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: "%",
}
Expand Down

0 comments on commit e3b311b

Please sign in to comment.