[🚀] 64KB
This commit is contained in:
		@@ -34,7 +34,7 @@ func GetOrderNumber() string {
 | 
				
			|||||||
// ByteFmt 格式化显示文件大小
 | 
					// ByteFmt 格式化显示文件大小
 | 
				
			||||||
func ByteFmt(size int64) string {
 | 
					func ByteFmt(size int64) string {
 | 
				
			||||||
	var unitArr = []string{"B", "KB", "MB", "GB", "TB", "EB"}
 | 
						var unitArr = []string{"B", "KB", "MB", "GB", "TB", "EB"}
 | 
				
			||||||
	if size == 0 {
 | 
						if size <= 0 {
 | 
				
			||||||
		return "unknown"
 | 
							return "unknown"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	fs := float64(size)
 | 
						fs := float64(size)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user