Update resources formatting
@@ -110,6 +110,7 @@ class Printer(object):
@classmethod
def resources(cls, jobs_resources):
+ print(jobs_resources)
jobs_resources = to_list(jobs_resources)
click.clear()
data = [['Job', 'Mem Usage / Limit', 'CPU% - CPUs', 'GPU Mem', 'GPU Usage']]
@@ -119,7 +120,7 @@ class Printer(object):
job_resources.job_uuid.hex,
'{} / {}'.format(to_unit_memory(job_resources.memory_used),
to_unit_memory(job_resources.memory_limit)),
- '{} - {}'.format(to_percentage(job_resources.cpu_percentage),
+ '{} - {}'.format(to_percentage(job_resources.cpu_percentage / 100),
len(job_resources.percpu_percentage))]
if job_resources.gpu_resources:
pass
