Compare commits

..

No commits in common. "7a9cd55fb2281b8d491deb487e11896c48793712" and "4d7668c9ff97b5d4fd7c563dfa1ef137f63a7088" have entirely different histories.

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)