Skip to content

Commit

Permalink
Merge branch 'plugin_output'
Browse files Browse the repository at this point in the history
  • Loading branch information
datamuc committed Jun 14, 2024
2 parents 075e2c2 + 10f8e7a commit dbf8358
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checkvsphere/vcmd/perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def run():
)
check.exit(
code=check.check_threshold(val),
message=f'Counter {args.perfcounter} on {args.vimtype}:{args.vimname or props["name"]} reported {val} {counterInfo["unit"]}',
message=f'Counter {args.perfcounter} on {args.vimtype}:{args.vimname or props["name"]} reported {val:.8g} {counterInfo["unit"]}',
)
else:
for instance in values.value:
Expand All @@ -167,7 +167,7 @@ def run():
)
check.add_message(
check.threshold.get_status(val),
f"'{instance.id.instance} {args.perfcounter}' has value {val} {counterInfo['unit']}",
f"'{instance.id.instance} {args.perfcounter}' has value {val:.8g} {counterInfo['unit']}",
)

(code, message) = check.check_messages(separator='\n ')
Expand Down

0 comments on commit dbf8358

Please sign in to comment.