summaryrefslogtreecommitdiff
path: root/Userland/uptime.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-07 11:49:31 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-07 11:49:31 +0200
commitb07bbf383d551eca9a50667cda0daec3eb74e806 (patch)
treeee982b94d6df8d150a207892dcceb0cdd216934b /Userland/uptime.cpp
parentf7ede145b42043a81c7e50f85616e25875521b04 (diff)
downloadserenity-b07bbf383d551eca9a50667cda0daec3eb74e806.zip
Userland: Run clang-format on everything.
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);