summaryrefslogtreecommitdiff
path: root/Userland/uptime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/uptime.cpp')
-rw-r--r--Userland/uptime.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/uptime.cpp b/Userland/uptime.cpp
index 4ee6717f6a..4d430589dd 100644
--- a/Userland/uptime.cpp
+++ b/Userland/uptime.cpp
@@ -19,22 +19,22 @@ int main(int, char**)
sscanf(buffer, "%u", &seconds);
printf("Up ");
-
+
if (seconds / 86400 > 0) {
printf("%d day%s, ", seconds / 86400, (seconds / 86400) == 1 ? "" : "s");
seconds %= 86400;
}
-
+
if (seconds / 3600 > 0) {
printf("%d hour%s, ", seconds / 3600, (seconds / 3600) == 1 ? "" : "s");
seconds %= 3600;
}
-
+
if (seconds / 60 > 0) {
printf("%d minute%s, ", seconds / 60, (seconds / 60) == 1 ? "" : "s");
seconds %= 60;
}
-
+
printf("%d second%s\n", seconds, seconds == 1 ? "" : "s");
fclose(fp);