summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/ps.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/ps.cpp b/Userland/ps.cpp
index babb767436..d140b729e0 100644
--- a/Userland/ps.cpp
+++ b/Userland/ps.cpp
@@ -9,7 +9,7 @@ int main(int argc, char** argv)
(void)argc;
(void)argv;
- printf("PID TPG PGP SID OWNER STATE PPID NSCHED FDS TTY NAME\n");
+ printf("PID TPG PGP SID OWNER STATE PPID NSCHED FDS TTY NAME\n");
auto all_processes = CProcessStatisticsReader::get_all();
@@ -19,8 +19,10 @@ int main(int argc, char** argv)
if (tty != "notty")
tty = strrchr(tty.characters(), '/') + 1;
+ else
+ tty = "n/a";
- printf("%-3u %-3u %-3u %-3u %-4u %-8s %-3u %-9u %-3u %-4s %s\n",
+ printf("%-3u %-3u %-3u %-3u %-4u %-10s %-3u %-9u %-4u %-4s %s\n",
proc.pid,
proc.pgid,
proc.pgp,