oxidecomputer / oxidecomputer/humility

`humility net counters` cannot handle counters with 7+ digits

Open
#579 0 comments 0 reactions 1 assignee View on GitHub

@mkeeter is already working on this.

Since Oct 22, 2025.

:bug: bug :computer: console ui
Dominant language
Rust
Stars
584
Forks
63
Avg merge
3h
Merged PRs (30d)
2

Description

This is low-urgency, but while attempting to show off some of our cool ASCII art to a friend, I noticed that the humility net counters command looks a bit ugly when there are numbers with more than six digits. It screws up both the tables and also the cool Unicode block diagram :(

For example:

eliza@alfred ~ $ pfexec humility -t cosmo-os net counters
humility: attached to 1fc9:0143:WTECYVHYHSQD4 via CMSIS-DAP
 -------------------------------------------------------------------
 |  KSZ8463  |         Transmit         |         Receive          |
 |           |   UC   |   BC   |   MC   |   UC   |   BC   |   MC   |
 |-----------|--------|--------|--------|--------|--------|--------|
 | Port 1    |      0 |      0 | 1296164 |      0 |      0 |      0 |
 | Port 2    |      0 |      0 | 1296164 |      0 |      0 |      0 |
 | Port 3    |      0 |      0 |      0 |      0 |      0 | 2592328 |
 -------------------------------------------------------------------

 -------------------------------------------------------
 |     VSC8562     |     Transmit    |     Receive     |
 |                 |  Good  |   Bad  |  Good  |   Bad  |
 |-----------------------------------------------------|
 | Port 0 | MAC    |   6164 |      0 |      0 |      0 |
 |        | Media  |      0 |      0 |   6164 |      0 |
 | Port 1 | MAC    |   6164 |      0 |      0 |      0 |
 |        | Media  |      0 |      0 |   6164 |      0 |
 -------------------------------------------------------

            ┌──────────────────┐            ┌───────────────────┐
            │ KSZ8463          │            │ VSC85x2           │
            │                  │tx        rx│                   │tx
            │            1296164├───────────►│6164           6164├───────►
            │                  │1          0│                   │0
┌────┐    rx│                 0│◄───────────┤0                 0│◄───────
│    ├─────►│2592328            │rx        tx│                   │rx
│ SP │     3│                  │            │                   │
│    │◄─────┤0                 │tx        rx│                   │tx
└────┘    tx│            1296164├───────────►│6164           6164├───────►
            │                  │2          1│                   │1
            │                 0│◄───────────┤0                 0│◄───────
            │                  │rx        tx│                   │rx
            └──────────────────┘            └───────────────────┘
                                             MEDIA           MAC

eliza@alfred ~ $

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.