Compare commits

..

2 Commits

Author SHA1 Message Date
7a9cd55fb2 Merge pull request '[🚀] 64KB' (#7) from dev into main
Reviewed-on: #7
2024-08-09 15:40:23 +08:00
0185a00836 [🚀] 64KB 2024-08-09 15:39:57 +08:00

View File

@ -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)