Skip to main content

change_cap

Function change_cap 

Source
pub(crate) fn change_cap(
    state: &AppState,
    def_id: &str,
    to: Option<f64>,
) -> Result<CapChange, String>
Expand description

Sets the agent’s daily cap (None: no cap). The alert level goes back to where the day now stands, and a stop the new cap no longer reaches is taken off the agent’s panes. The caller has checked who may do this and records it.