Skip to main content

map_service_stats

Function map_service_stats 

Source
pub fn map_service_stats(output: &ListOutput, processes: u32) -> ServiceStats
Expand description

Map a Unit.List reply onto ServiceStats.

processes comes from the unit’s cgroup rather than the reply — systemd exposes no per-cgroup process count over varlink (tracked in #37).