summaryrefslogtreecommitdiffstats
path: root/usr.bin/ruptime
diff options
context:
space:
mode:
authorscrappy <scrappy@FreeBSD.org>1997-03-31 09:36:59 +0000
committerscrappy <scrappy@FreeBSD.org>1997-03-31 09:36:59 +0000
commit6da0b022388e3bb18a7204a2754a48f2e6860681 (patch)
tree69e8a12c8521097fd5c29cc081f4a10376b50d06 /usr.bin/ruptime
parente4999cee16b2f241d2c5ccdb0e4be31b312c5ed2 (diff)
downloadFreeBSD-src-6da0b022388e3bb18a7204a2754a48f2e6860681.zip
FreeBSD-src-6da0b022388e3bb18a7204a2754a48f2e6860681.tar.gz
Small formatting change to interval() to align columns so that:
toronto up 5+18:58, 0 users, load 0.00, 0.00, 0.00 zeus up 109+13:53, 0 users, load 0.55, 0.28, 0.15 looks like: toronto up 5+18:58, 0 users, load 0.00, 0.00, 0.00 zeus up 109+13:53, 0 users, load 0.55, 0.28, 0.15
Diffstat (limited to 'usr.bin/ruptime')
-rw-r--r--usr.bin/ruptime/ruptime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ruptime/ruptime.c b/usr.bin/ruptime/ruptime.c
index 0acf722..e075d92 100644
--- a/usr.bin/ruptime/ruptime.c
+++ b/usr.bin/ruptime/ruptime.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*/
-/* $Id: ruptime.c,v 1.9 1997/02/22 19:56:50 peter Exp $ */
+/* $Id: ruptime.c,v 1.10 1997/03/29 04:32:02 imp Exp $ */
#ifndef lint
static char copyright[] =
@@ -211,10 +211,10 @@ interval(tval, updown)
hours %= 24;
if (days)
(void)snprintf(resbuf, sizeof(resbuf),
- "%s %2d+%02d:%02d", updown, days, hours, minutes);
+ "%s %3d+%02d:%02d", updown, days, hours, minutes);
else
(void)snprintf(resbuf, sizeof(resbuf),
- "%s %2d:%02d", updown, hours, minutes);
+ "%s %2d:%02d", updown, hours, minutes);
return (resbuf);
}
OpenPOWER on IntegriCloud