Skip to content

Commit

Permalink
13311 uptime(1) dazed and confused for a minute after boot
Browse files Browse the repository at this point in the history
Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Approved by: Robert Mustacchi <rm@fingolfin.org>
  • Loading branch information
despair86 authored and rmustacc committed Dec 29, 2020
1 parent f816551 commit 174b8e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions usr/src/cmd/w/w.c
Expand Up @@ -307,12 +307,13 @@ main(int argc, char *argv[])
if (hrs > 0 && mins > 0) {
PRINTF((" %2d:%02d,", hrs, mins));
} else {
if (hrs > 0)
if (hrs > 0) {
PRINTF((gettext(
" %d hr(s),"), hrs));
if (mins > 0)
} else { /* mins can be zero */
PRINTF((gettext(
" %d min(s),"), mins));
}
}
}
}
Expand Down

0 comments on commit 174b8e4

Please sign in to comment.