Author: obrien
Date: Thu Oct 14 02:19:53 2010
New Revision: 213826
URL: http://svn.freebsd.org/changeset/base/213826

Log:
  MFC r212771:
    Increase the hostname display width to >12 characters.

Modified:
  stable/7/usr.bin/ruptime/ruptime.c
Directory Properties:
  stable/7/usr.bin/ruptime/   (props changed)

Modified: stable/7/usr.bin/ruptime/ruptime.c
==============================================================================
--- stable/7/usr.bin/ruptime/ruptime.c  Thu Oct 14 02:10:49 2010        
(r213825)
+++ stable/7/usr.bin/ruptime/ruptime.c  Thu Oct 14 02:19:53 2010        
(r213826)
@@ -244,12 +244,12 @@ ruptime(const char *host, int aflg, int 
        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"),
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to