svn commit: r343492 - stable/12/usr.bin/ruptime

Takahashi Yoshihiro nyan at FreeBSD.org
Sun Jan 27 14:03:39 UTC 2019


Author: nyan
Date: Sun Jan 27 14:03:38 2019
New Revision: 343492
URL: https://svnweb.freebsd.org/changeset/base/343492

Log:
  MFC: r342965
  
    Fix indentation in ruptime command output for hosts in the "down" state.
  
  PR:		234239

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

Modified: stable/12/usr.bin/ruptime/ruptime.c
==============================================================================
--- stable/12/usr.bin/ruptime/ruptime.c	Sun Jan 27 13:58:06 2019	(r343491)
+++ stable/12/usr.bin/ruptime/ruptime.c	Sun Jan 27 14:03:38 2019	(r343492)
@@ -264,7 +264,7 @@ ruptime(const char *host, int aflg, int (*cmp)(const v
 		hsp = &hs[i];
 		wd = &hsp->hs_wd;
 		if (ISDOWN(hsp)) {
-			(void)printf("%-*.*s%s\n",
+			(void)printf("%-*.*s  %s\n",
 			    hostnamewidth, hostnamewidth, wd->wd_hostname,
 			    interval(now - hsp->hs_wd.wd_recvtime, "down"));
 			continue;


More information about the svn-src-all mailing list