From ba4d863a71e5f182f7e38bb3b3b23aaf9e151cd0 Mon Sep 17 00:00:00 2001 From: Jeff Zhao Date: Mon, 31 Jul 2023 16:47:50 -0400 Subject: fix file size format --- src/util/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3