Expand description
Human-readable formatting.
Called from the renderer only. Nothing here is on the per-process scan path:
docs/DESIGN.md §9.4 — a format! inside a scan is a bug.
Functions§
- bytes_
human - Format a byte count using binary IEC units, matching
htop.1MEMORY SIZES. - cpu_
time_ human - Format CPU ticks as a
MM:SS.ccfigure, as the TIME column shows. - duration_
human - Format a duration as
MM:SSorH:MM:SS/D-HH:MM:SS(htop’s TIME+ style). - duration_
verbose - Format a duration with explicit units, for places with room to spell it out.
- percent_
human - Format a percentage with one decimal, as a fixed-width cell.