diff options
author | 1999-02-09 13:32:03 +0000 | |
---|---|---|
committer | 1999-02-09 13:32:03 +0000 | |
commit | 9222d4f6b5cb1513ea5eb001023112f2f9670b3f (patch) | |
tree | 1d0f16c762206dcfa714fc9c5350c35f9b8d93f9 /usr.bin | |
parent | sync (diff) | |
download | wireguard-openbsd-9222d4f6b5cb1513ea5eb001023112f2f9670b3f.tar.xz wireguard-openbsd-9222d4f6b5cb1513ea5eb001023112f2f9670b3f.zip |
for 1 min up, report min instead of mins; abs@netbsd
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rup/rup.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/rup/rup.c b/usr.bin/rup/rup.c index df058b1ef1b..fd9d244d042 100644 --- a/usr.bin/rup/rup.c +++ b/usr.bin/rup/rup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rup.c,v 1.9 1998/08/08 20:25:14 millert Exp $ */ +/* $OpenBSD: rup.c,v 1.10 1999/02/09 13:32:03 deraadt Exp $ */ /*- * Copyright (c) 1993, John Brezak @@ -34,7 +34,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: rup.c,v 1.9 1998/08/08 20:25:14 millert Exp $"; +static char rcsid[] = "$OpenBSD: rup.c,v 1.10 1999/02/09 13:32:03 deraadt Exp $"; #endif /* not lint */ #include <stdio.h> @@ -224,7 +224,8 @@ print_rup_data(host, host_stat) uph, upm); else if (upm != 0) - sprintf(hours_buf, "%2u mins, ", upm); + sprintf(hours_buf, "%2u min%s ", upm, + (upm == 1) ? ", " : "s,"); else hours_buf[0] = '\0'; |