Documentation
¶
Overview ¶
Package format provides small formatting helpers shared across the UI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesCompact ¶
BytesCompact renders a byte count in binary units like Bytes, but drops the decimal once the value reaches 100 of its unit, so wide counts stay inside narrow table columns ("9.9 GiB", "128 GiB").
func CPUPct ¶
CPUPct renders a CPU percentage for a fixed 5-cell column: a busy multi-thread process can exceed 100 (up to cores×100), so values ≥100 drop the decimal and values ≥1000 clamp — the column can never push a table row out of alignment.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.