rw_resource_util::cpu

Function get_cpu_limit_v1

source
pub fn get_cpu_limit_v1(
    quota_path: &str,
    period_path: &str,
    max_value: f32,
) -> Result<f32, Error>
Expand description

Returns the CPU limit when cgroup v1 is utilised.