Skip to content

Commit

Permalink
Fix idaholab#467, error reporting memory and CPU resources in scripts…
Browse files Browse the repository at this point in the history
…/malcolm_kubernetes.py
  • Loading branch information
mmguero committed May 1, 2024
1 parent 14e7372 commit af9e00b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/malcolm_kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,11 @@ def pod_stats(node, namespace):
if c['usage']['cpu'] == '0':
pass
else:
cpu = +int(c['usage']['cpu'][:-1])
cpu += int(c['usage']['cpu'][:-1])
cpu = str(cpu) + 'n'
cpu = _nanocore_to_millicore(cpu)
for m in cpu_mem['containers']:
mem = +int(m['usage']['memory'][:-2])
mem += int(m['usage']['memory'][:-2])
mem = str(mem) + 'Ki'
mem = _to_gibibyte_or_mebibyte(mem)
except kubeImported.client.rest.ApiException as x:
Expand Down

0 comments on commit af9e00b

Please sign in to comment.