Date: Sat, 12 Jan 2019 12:57:32 +0000 (UTC) From: Takahashi Yoshihiro <nyan@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r342965 - head/usr.bin/ruptime Message-ID: <201901121257.x0CCvWQ0011195@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nyan Date: Sat Jan 12 12:57:32 2019 New Revision: 342965 URL: https://svnweb.freebsd.org/changeset/base/342965 Log: Fix indentation in ruptime command output for hosts in the "down" state. PR: 234239 MFC after: 1 week Modified: head/usr.bin/ruptime/ruptime.c Modified: head/usr.bin/ruptime/ruptime.c ============================================================================== --- head/usr.bin/ruptime/ruptime.c Sat Jan 12 12:35:02 2019 (r342964) +++ head/usr.bin/ruptime/ruptime.c Sat Jan 12 12:57:32 2019 (r342965) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901121257.x0CCvWQ0011195>