fn do_comparison(args: &Args, start: &Calculations, end: &Calculations) -> Status {
    let mut exit_status = Status::Ok;

    for flag in &args.work_type {
        let total = end.percent_util_since(flag, &start);
        exit_status = std::cmp::max(
            exit_status,
            print_errors_and_status(flag, total, args.crit.into(), args.warn, exit_status),
        );
    }
    println!("INFO [check-cpu]: Usage breakdown: {}", end - start);

    exit_status
}
/// Check if we have exceeded the warn or critical limits
///
/// The *cstat parameters, if present, mean that in addition to performing the
/// standard checks we check the currently-running container against the same
/// thresholds.
Check if we have exceeded the warn or critical limits
The *cstat parameters, if present, mean that in addition to performing the
standard checks we check the currently-running container against the same
thresholds.
Check if we have exceeded the warn or critical limits The * cstat parameters if present mean that in addition to performing the standard checks we check the currently - running container against the same thresholds .
fn do_comparison(args: &Args, start: &Calculations, end: &Calculations) -> Status {
    let mut exit_status = Status::Ok;
    for flag in &args.work_type {
        let total = end.percent_util_since(flag, &start);
        exit_status = std::cmp::max(
            exit_status,
            print_errors_and_status(flag, total, args.crit.into(), args.warn, exit_status),
        );
    }
    println!("INFO [check-cpu]: Usage breakdown: {}", end - start);
    exit_status
}
fn do_comparison ( args : & Args , start : & Calculations , end : & Calculations ) -> Status { let mut exit_status = Status :: Ok ; for flag in & args . work_type { let total = end . percent_util_since ( flag , & start ) ; exit_status = std :: cmp :: max ( exit_status , print_errors_and_status ( flag , total , args . crit . into ( ) , args . warn , exit_status ) , ) ; } println ! ( " " end start ) ; exit_status }
Check if we have exceeded the warn or critical limits
The *cstat parameters, if present, mean that in addition to performing the
standard checks we check the currently-running container against the same
thresholds.
Check if we have exceeded the warn or critical limits The * cstat parameters if present mean that in addition to performing the standard checks we check the currently - running container against the same thresholds .
args
&Args
start
&Calculations
end
&Calculations
args
&Args
start
&Calculations
end
&Calculations