Bug 234239 - Wrong indentation in ruptime command output for hosts in the "down" state [PATCH]
Summary: Wrong indentation in ruptime command output for hosts in the "down" state [PA...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.0-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: Yoshihiro Takahashi
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2018-12-21 06:36 UTC by sonic2000gr
Modified: 2020-04-11 07:51 UTC (History)
1 user (show)

See Also:
nyan: mfc-stable12+
nyan: mfc-stable11+


Attachments
Indentation fix for ruptime command (392 bytes, patch)
2018-12-21 06:36 UTC, sonic2000gr
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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