Skip to main content

clamp_minutes

Function clamp_minutes 

Source
pub(crate) fn clamp_minutes(asked: Option<u64>) -> u64
Expand description

Round asked to one of CHOICES_MINUTES: the nearest one not longer than asked, and never past the longest. None gives the default.