Skip to main content

format_bytes_weighted

Function format_bytes_weighted 

Source
pub fn format_bytes_weighted(bytes: u64) -> String
Expand description

A byte figure styled as “this is the number to look at”, saying nothing about whether it is good news.

format_bytes_styled’s green means “space you got back”. A cache’s cost per repository is not that: it is the figure a decision turns on, and green would promise the reader something the number does not mean. Weight rather than colour, the same choice print_header makes and for the same reason.