summaryrefslogtreecommitdiff
path: root/usr.bin/rup/rup.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-02-09 13:32:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-02-09 13:32:04 +0000
commit62f86e89209e7f5a776ad9ffc7a85e355adf35bf (patch)
treecafdc4ea7e8019ed7fcda90485e824e1ca1e0969 /usr.bin/rup/rup.c
parent76aa878d48262cca2e007dd4284596e664e81a88 (diff)
for 1 min up, report min instead of mins; abs@netbsd
Diffstat (limited to 'usr.bin/rup/rup.c')
-rw-r--r--usr.bin/rup/rup.c7
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';