improve style

This commit is contained in:
mingyang 2020-12-14 18:34:51 +08:00
parent 37a1cfe942
commit 1f9984893b

View File

@ -389,6 +389,8 @@ class GPUStat():
) )
proc_strs.append(this_proc_str) proc_strs.append(this_proc_str)
proc_info = '\n'.join(proc_strs) proc_info = '\n'.join(proc_strs)
table_width = info.find('\n')
proc_info = draw_table([['Process Info'.center(table_width-4)], [proc_info]], rowsty="c|c|", colsty="|l|", colsz=[table_width-4])
info += proc_info info += proc_info
print(info) print(info)