pull/6/head
dvkt 5 years ago
parent 6f3b8aac49
commit 240e801d2b

@ -36,10 +36,8 @@ pub fn human_bytes(bytes: usize) -> String {
(bytes / 1000, "Kb")
} else if bytes < 1_000_000_000 {
(bytes / 1_000_000, "Mb")
} else if bytes < 1_000_000_000_000 {
(bytes / 1_000_000_000, "Gb")
} else {
(bytes, "?b")
(bytes / 1_000_000_000, "Gb")
};
format!("{}{}", count, tag)

Loading…
Cancel
Save