Skip to main content

progress_fraction

Function progress_fraction 

Source
pub fn progress_fraction(downloaded: u64, total: Option<ProgressTotal>) -> f64
Expand description

The fraction complete, in 0.0..=1.0. An estimated total is capped at ESTIMATED_PROGRESS_CEILING so a prediction that ran low never shows a finished bar on a download still running.

TRACES: UR-071 | DR-290 | UT-252