fix another bug

This commit is contained in:
mingyang 2020-11-19 10:32:37 +08:00
parent 356d201499
commit 7c304c688b

View File

@ -317,7 +317,7 @@ class GPUStat():
if pid not in procs: if pid not in procs:
procs[pid] = proc procs[pid] = proc
else: else:
procs[pid]['gpu'].append(gpu['id']) procs[pid]['gpu'].append(str(gpu['id']))
proc_fmt = '[{pid}|{gpus}] {user}({vmem} MiB) {cmd}' proc_fmt = '[{pid}|{gpus}] {user}({vmem} MiB) {cmd}'
proc_strs = [] proc_strs = []
for pid in procs: for pid in procs: