Bug 234239

Summary: Wrong indentation in ruptime command output for hosts in the "down" state [PATCH]
Product: Base System Reporter: sonic2000gr
Component: binAssignee: Yoshihiro Takahashi <nyan>
Status: Closed FIXED    
Severity: Affects Some People CC: nyan
Priority: --- Keywords: patch
Version: 12.0-RELEASEFlags: nyan: mfc-stable12+
nyan: mfc-stable11+
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245296
Attachments:
Description Flags
Indentation fix for ruptime command none

Description sonic2000gr 2018-12-21 06:36:30 UTC
Created attachment 200327 [details]
Indentation fix for ruptime command

The ruptime command in 12.0-RELEASE is missing two spaces when a host is in the down state, resulting in wrong indentation of the entire line. Example:

MISTANAPL2down      18:22
jupiter       up    9+23:07,  0 users,  load 0.04, 0.13, 0.18
titan         up       9:10,  1 user,   load 0.03, 0.21, 0.23

Please see attached patch.
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-01-12 12:58:29 UTC
A commit references this bug:

Author: nyan
Date: Sat Jan 12 12:57:32 UTC 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

Changes:
  head/usr.bin/ruptime/ruptime.c
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-01-27 14:04:41 UTC
A commit references this bug:

Author: nyan
Date: Sun Jan 27 14:03:38 UTC 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

Changes:
_U  stable/12/
  stable/12/usr.bin/ruptime/ruptime.c
Comment 3 commit-hook freebsd_committer freebsd_triage 2020-04-11 07:47:29 UTC
A commit references this bug:

Author: nyan
Date: Sat Apr 11 07:46:39 UTC 2020
New revision: 359799
URL: https://svnweb.freebsd.org/changeset/base/359799

Log:
  MFC: r342965

  > Fix indentation in ruptime command output for hosts in the "down" state.

  MFC: r359631

  > Remove extra spaces for the load average of machines that are down.

  PR:		234239, 245296

Changes:
_U  stable/11/
  stable/11/usr.bin/ruptime/ruptime.c