From fec05eb377d82682adc98df38530e758889e8226 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 31 Aug 2008 12:35:18 +0200 Subject: uptime --help: put together message parts that belong together --- src/uptime.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/uptime.c b/src/uptime.c index a5c4fe55c..8687a575f 100644 --- a/src/uptime.c +++ b/src/uptime.c @@ -130,17 +130,21 @@ print_uptime (size_t n, const STRUCT_UTMP *this) /* procps' version of uptime also prints the seconds field, but previous versions of coreutils don't. */ if (tmn) - fprintftime (stdout, _(" %H:%M%P up "), tmn, 0, 0); + /* TRANSLATORS: This prints the current clock time. */ + fprintftime (stdout, _(" %H:%M%P "), tmn, 0, 0); else - printf (_(" ??:???? up ")); + printf (_(" ??:???? ")); if (uptime == (time_t) -1) - printf (_("???? days ??:??, ")); + printf (_("up ???? days ??:??, ")); else { if (0 < updays) - printf (ngettext ("%ld day", "%ld days", select_plural (updays)), - updays); - printf (" %2d:%02d, ", uphours, upmins); + printf (ngettext ("up %ld day %2d:%02d, ", + "up %ld days %2d:%02d, ", + select_plural (updays)), + updays, uphours, upmins); + else + printf ("up %2d:%02d, ", uphours, upmins); } printf (ngettext ("%lu user", "%lu users", entries), (unsigned long int) entries); -- cgit v1.2.3-54-g00ecf