Skip to content

Commit

Permalink
mysql-memory: Fix output
Browse files Browse the repository at this point in the history
  • Loading branch information
markuslf committed Sep 18, 2023
1 parent 7bf870e commit 1342192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check-plugins/mysql-memory/mysql-memory
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,12 @@ def main():
msg += '* Max Used Memory %: mump = mum / pm * 100 = {} / {} * 100 = {}%\n'.format(
lib.human.bytes2human(mycalc['max_used_memory']),
lib.human.bytes2human(physical_memory),
lib.human.bytes2human(mycalc['pct_max_used_memory']),
mycalc['pct_max_used_memory'],
)
msg += '* Max Possible Memory Usage %: mpmu = ppm / pm * 100 = {} / {} * 100 = {}%\n'.format(
lib.human.bytes2human(mycalc['max_peak_memory']),
lib.human.bytes2human(physical_memory),
lib.human.bytes2human(mycalc['pct_max_physical_memory']),
mycalc['pct_max_physical_memory'],
)

# perfdata
Expand Down

0 comments on commit 1342192

Please sign in to comment.