Compare commits
No commits in common. "7a9cd55fb2281b8d491deb487e11896c48793712" and "4d7668c9ff97b5d4fd7c563dfa1ef137f63a7088" have entirely different histories.
7a9cd55fb2
...
4d7668c9ff
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user