print fractional compressed size

This commit is contained in:
2022-06-22 00:16:35 +02:00
parent 1f6de62e5d
commit 7caad08b7c
7 changed files with 20 additions and 8 deletions

View File

@@ -164,7 +164,10 @@ fn load_cart(filename: &Path, config: &Config) -> (Result<Vec<u8>>, Vec<PathBuf>
if let Some(ref pack_config) = config.pack {
cart = uw8_tool::pack(&cart, pack_config)?;
println!("packed size: {} bytes", cart.len());
println!(
"\npacked size: {:.2} bytes",
uw8_tool::compressed_size(&cart)
);
}
if let Some(ref path) = config.output_path {