uptime: remove extraneous space

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
This commit is contained in:
Pádraig Brady committed 2026-07-20 19:46:41 +01:00
1 parent 8881342a24
commit 952435f079
1 file changed
+1 -1
+1 -1
View 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)),