summaryrefslogtreecommitdiff
path: root/Userland/top.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-22 15:52:45 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-22 15:53:52 +0200
commit1277d583ef32c8931dc51635a4b6cd7a96f737ed (patch)
treea0b94b8691099519e948b479381bc554e1f6dabc /Userland/top.cpp
parent5980007e44698071fe71a7e412785b8d04471127 (diff)
downloadserenity-1277d583ef32c8931dc51635a4b6cd7a96f737ed.zip
printf: Oops, '-' is the left padding modifier, not ' '.
It's kinda funny how I can make a mistake like this in Serenity and then get so used to it by spending lots of time using this API that I start to believe that this is how printf() always worked..
Diffstat (limited to 'Userland/top.cpp')
-rw-r--r--Userland/top.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/top.cpp b/Userland/top.cpp
index 4f5a07f60d..aeebd98622 100644
--- a/Userland/top.cpp
+++ b/Userland/top.cpp
@@ -88,7 +88,7 @@ int main(int, char**)
auto sum_diff = current.sum_nsched - prev.sum_nsched;
printf("\033[3J\033[H\033[2J");
- printf("\033[47;30m%6s %3s % 8s % 8s %6s %6s %4s %s\033[K\033[0m\n",
+ printf("\033[47;30m%6s %3s %-8s %-8s %6s %6s %4s %s\033[K\033[0m\n",
"PID",
"PRI",
"USER",
@@ -118,7 +118,7 @@ int main(int, char**)
});
for (auto* process : processes) {
- printf("%6d %c % 8s % 8s %6u %6u %2u.%1u %s\n",
+ printf("%6d %c %-8s %-8s %6u %6u %2u.%1u %s\n",
process->pid,
process->priority[0],
process->user.characters(),