From dbb001c036f23d47d86b79fcc1ded46937cf4e07 Mon Sep 17 00:00:00 2001 From: obrien Date: Thu, 16 Sep 2010 22:38:27 +0000 Subject: Increase the hostname display width. Many machines are named with >12 characters. This still allows for 80 column output with load averages of 99.99, 99.99, 99.99. --- usr.bin/ruptime/ruptime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/ruptime/ruptime.c b/usr.bin/ruptime/ruptime.c index 1e3356f..58e598c 100644 --- a/usr.bin/ruptime/ruptime.c +++ b/usr.bin/ruptime/ruptime.c @@ -244,12 +244,12 @@ ruptime(const char *host, int aflg, int (*cmp)(const void *, const void *)) for (i = 0; i < (int)nhosts; i++) { hsp = &hs[i]; if (ISDOWN(hsp)) { - (void)printf("%-12.12s%s\n", hsp->hs_wd->wd_hostname, + (void)printf("%-25.25s%s\n", hsp->hs_wd->wd_hostname, interval(now - hsp->hs_wd->wd_recvtime, "down")); continue; } (void)printf( - "%-12.12s%s, %4d user%s load %*.2f, %*.2f, %*.2f\n", + "%-25.25s%s, %4d user%s load %*.2f, %*.2f, %*.2f\n", hsp->hs_wd->wd_hostname, interval((time_t)hsp->hs_wd->wd_sendtime - (time_t)hsp->hs_wd->wd_boottime, " up"), -- cgit v1.1