We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52ea107 commit 0ab2f97Copy full SHA for 0ab2f97
nvidia-htop.py
@@ -195,6 +195,10 @@ def colorize(_lines):
195
for field in fields:
196
del field[idx]
197
198
+if len(pid) == 0:
199
+ print("| " + no_running_process + " " * (73 - len(no_running_process)) + " |")
200
+ sys.exit()
201
+
202
max_pid_length = max(5, max([len(x) for x in pid]))
203
format = ("| %3s %" + str(max_pid_length) + "s %8s %8s %5s %5s %9s %-" + str(command_length) + "." + str(command_length) + "s |")
204
0 commit comments