Skip to main content

Module status

Module status 

Source
Expand description

Shared rendering for rgx --server status (and watch). Used by the daemon with live in-RAM stats, and by the CLI when no daemon is running — in which case it still reports the on-disk index location, size, and age, read straight from the snapshot file.

Structs§

Status
Everything the status block can show. In-RAM fields are None when no daemon is running.

Functions§

human_bytes
human_count
Human-friendly counts: 758, 93.6k, 1.5m (one decimal, lowercase k/m suffixes). The < 999.95 guards keep a value that would round to 1000.0 at one decimal from showing 1000.0k instead of rolling over to 1.0m.
human_duration