Skip to main content

ratio

Function ratio 

Source
pub fn ratio(done: u64, total: u64, ctx: &Context) -> String
Expand description

▓▓▓▓░░░░░░ 4 of 6, or just 4 of 6.

total of zero has no ratio to show: nothing is drawn, and the numbers are still printed, because “0 of 0” is an answer and a blank line is not.