1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:57:44 +00:00

Userland: Run clang-format on everything.

This commit is contained in:
Andreas Kling 2019-06-07 11:49:31 +02:00
parent f7ede145b4
commit b07bbf383d
48 changed files with 271 additions and 268 deletions

View file

@ -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);