oxidecomputer / oxidecomputer/humility
`humility net counters` cannot handle counters with 7+ digits
Open
@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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.