From 0185a00836d7fcc26cd0c52041b2f2c4ceede882 Mon Sep 17 00:00:00 2001 From: bvbej Date: Fri, 9 Aug 2024 15:39:57 +0800 Subject: [PATCH] =?UTF-8?q?[=F0=9F=9A=80]=2064KB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tool/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/helper.go b/tool/helper.go index 2015e6a..d09ffe7 100644 --- a/tool/helper.go +++ b/tool/helper.go @@ -34,7 +34,7 @@ func GetOrderNumber() string { // ByteFmt 格式化显示文件大小 func ByteFmt(size int64) string { var unitArr = []string{"B", "KB", "MB", "GB", "TB", "EB"} - if size == 0 { + if size <= 0 { return "unknown" } fs := float64(size)