Skip to main content

one_stop_brings_commit_down

Function one_stop_brings_commit_down 

Source
fn one_stop_brings_commit_down(
    used_pct: f64,
    limit_pct: f64,
    total_gb: Option<f64>,
) -> Result<(), String>
Expand description

Whether stopping one idle agent can bring commit use down to the limit. Err says how much has to go and that nothing was stopped, so a start that stops an agent for nothing is never made. With no total to size the shortfall against (non-Windows, or a failed read) it cannot tell, and the stop goes ahead.