pub fn progress_percent(done: u64, total: Option<u64>) -> Option<f32>Expand description
Compute a 0.0..=100.0 percentage from downloaded/total bytes.
Returns None when the total is unknown or zero, signalling the UI to show
an indeterminate spinner instead of a determinate bar.