format_cpu_max

Function format_cpu_max 

Source
pub fn format_cpu_max(quota: Option<u64>, period_us: u64) -> String
Expand description

Render a cpu.max pair as <quota>/<period> where quota is either max (no cap) or the auto-scaled µs value. Period is always present (default 100_000 µs per default_bw_period_us() at kernel/sched/sched.h:441). The <quota>/<period> separator is THIS crate’s display convention — the kernel itself emits raw integers in cat cpu.max (space-separated, no auto-scale); we auto-scale via format_scaled_u64 for human-friendly output, which also widens the visual delimiter from the kernel’s space to a slash.