Skip to content

Commit

Permalink
refactor: extend size units array to include PB, EB, ZB, and YB
Browse files Browse the repository at this point in the history
  • Loading branch information
Kremilly committed Feb 16, 2025
1 parent a8720da commit 6c8b071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl FileUtils {
}

pub fn size(size: u64) -> String {
let sizes = ["B", "KB", "MB", "GB", "TB"];
let sizes = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
let mut size_f = size as f64;
let mut index = 0;

Expand Down

0 comments on commit 6c8b071

Please sign in to comment.