pub fn memory(used: u64, total: u64) -> usize {
    let used = used as f64;
    let total = total as f64;

    (used / total * 10f64).ceil() as usize
}
/// Returns a `usize` whose value can range from 0 up to 10 based on the given `value`.
/// This is very similar to `num_to_blocks` but the calculations are done in a different way.
Returns a `usize` whose value can range from 0 up to 10 based on the given `value`.
This is very similar to `num_to_blocks` but the calculations are done in a different way.
Returns a ` usize ` whose value can range from 0 up to 10 based on the given ` value ` . This is very similar to ` num_to_blocks ` but the calculations are done in a different way .
pub fn memory(used: u64, total: u64) -> usize {
    let used = used as f64;
    let total = total as f64;
    (used / total * 10f64).ceil() as usize
}
pub fn memory ( used : u64 , total : u64 ) -> usize { let used = used as f64 ; let total = total as f64 ; ( used / total * 10f64 ) . ceil ( ) as usize }
Returns a `usize` whose value can range from 0 up to 10 based on the given `value`.
Returns a ` usize ` whose value can range from 0 up to 10 based on the given ` value ` .
used
u64
total
u64
used
u64
total
u64