Skip to content

Commit

Permalink
typo. fix perf
Browse files Browse the repository at this point in the history
  • Loading branch information
Koos85 committed Feb 3, 2023
1 parent 9e1caea commit db3535d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/check/host_vms.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@ async def check_host_vms(
info_dct['cpuReadiness'] = max(values) / 20_000 * 100
# number of disk bus reset commands by the virtual machine
path = ('disk', 'busResets')
info_dct['busResets'] = sum(perf[path].values())
info_dct['busResets'] = sum(
sum(values)
for values in perf[path].values()
)

guests.append(info_dct)

Expand Down
2 changes: 1 addition & 1 deletion lib/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Version string. Examples:
# '3.0.0'
# '3.0.0-alpha1'
__version__ = '3.0.0-alpha12'
__version__ = '3.0.0-alpha13'
2 changes: 1 addition & 1 deletion lib/vmwareconn.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_perf(ip4, username, password, obj_type, metrics, interval):
start_time = content_time - timedelta(seconds=interval + 1)
spec = vim.PerformanceManager.QuerySpec(intervalId=20,
entity=child,
etricId=metric_id,
metricId=metric_id,
startTime=start_time,
endTime=end_time)
results[child.config.instanceUuid] = result = {m: {} for m in metrics}
Expand Down

0 comments on commit db3535d

Please sign in to comment.