]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
uptime: remove extraneous space master
authorPádraig Brady <P@draigBrady.com>
Mon, 20 Jul 2026 18:45:14 +0000 (19:45 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 20 Jul 2026 18:46:41 +0000 (19:46 +0100)
This make output more consistent with procps.

* src/uptime.c (main): Remove extra space after "up"
when uptime is less than a day.
Fixes https://github.com/coreutils/coreutils/issues/321

src/uptime.c

index 4de00a8cb8ab6d284de4678534254856fa08dd85..150528fdc9dbad38e78ab0592d8d3cc956f7f79b 100644 (file)
@@ -91,7 +91,7 @@ print_uptime (idx_t n, STRUCT_UTMP const *utmp_buf)
                           select_plural (updays)),
                 updays, uphours, upmins);
       else
-        printf (_("up  %2d:%02d,  "), uphours, upmins);
+        printf (_("up %2d:%02d,  "), uphours, upmins);
     }
 
   printf (ngettext ("%td user", "%td users", select_plural (entries)),