[Bug 290089] w libxo output has extra padding in uptime-human

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 08 Oct 2025 09:41:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290089

            Bug ID: 290089
           Summary: w libxo output has extra padding in uptime-human
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: bugs-freebsd-org916@ketas.si.pri.ee

uptime-human field has padding at the start in all xo output


example:

> w --libxo=json,pretty
{
  "__version": "1",
  "uptime-information": {
    "time-of-day": "12:39PM",
    "uptime": 18188,
    "days": 0,
    "hours": 5,
    "minutes": 3,
    "seconds": 8,
    "uptime-human": "  5:03,",
    "users": 0,
    "load-average-1": 0.32,
    "load-average-5": 0.34,
    "load-average-15": 0.31,
    "user-table": {
      "user-entry": [
      ]
    }
  }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.