diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2023-07-31 16:47:50 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2023-07-31 16:47:50 -0400 |
commit | ba4d863a71e5f182f7e38bb3b3b23aaf9e151cd0 (patch) | |
tree | 1098e259391cf3efc543ef2ed69b5718e96368d3 | |
parent | 715b5fbdc62caeababee1857c696d0796805c3d3 (diff) |
fix file size format
-rw-r--r-- | src/util/format.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/format.rs b/src/util/format.rs index cd73605..0afa793 100644 --- a/src/util/format.rs +++ b/src/util/format.rs @@ -1,7 +1,7 @@ use std::time; pub fn file_size_to_string(file_size: u64) -> String { - const FILE_UNITS: [&str; 6] = ["B", "K", "M", "G", "T", "E"]; + const FILE_UNITS: [&str; 6] = ["B", "K", "M", "G", "T", "P"]; const CONV_RATE: f64 = 1024.0; let mut file_size: f64 = file_size as f64; |