Skip to content

Commit

Permalink
calculate_compression_ratio -> compression_ratio
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Chan Kwan Yin <sofe2038@gmail.com>
  • Loading branch information
kkent030315 and SOF3 authored Oct 30, 2023
1 parent 8a9dc05 commit e0a4725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/src/lib.rs
Original file line number Diff line number Diff line change
@@ -101,7 +101,7 @@ impl TryFrom<Ident> for CompressionMethodTy {
}
}

fn calculate_compression_ratio(original_size: u64, compressed_size: u64) -> f64 {
fn compression_ratio(original_size: u64, compressed_size: u64) -> f64 {
(compressed_size as f64 / original_size as f64) * 100.0
}

0 comments on commit e0a4725

Please sign in to comment.