Skip to content

Commit

Permalink
Merge pull request #39 from NETWAYS/c_and_p_bug
Browse files Browse the repository at this point in the history
Fix percentage performance data for used memory
  • Loading branch information
RincewindsHat authored May 27, 2024
2 parents b9c0e57 + e3b311b commit baff21e
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 baff21e

Please sign in to comment.