Skip to content

Commit

Permalink
Dim pid if process does not exist anymore 📘
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwant committed Apr 26, 2022
1 parent 085ff42 commit 9ae004d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hapless/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ def stats(haps: List[Hap], verbose: bool = False):
active_haps = 0
for hap in haps:
active_haps += 1 if hap.active else 0
pid_text = f"{hap.pid}" if hap.active else Text(f"{hap.pid}", style="dim")
table.add_row(
f"{hap.hid}",
hap.name,
f"{hap.pid}",
pid_text,
hap.status,
f"{hap.rc}" if hap.rc is not None else "",
hap.runtime,
Expand Down

0 comments on commit 9ae004d

Please sign in to comment.