mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-22 07:07:01 +02:00
fixed issues for testing
This commit is contained in:
@@ -138,7 +138,10 @@ func CreateTimeLimitCode(data string, minutes int, startInf interface{}) string
|
||||
|
||||
// FileSize calculates the file size and generate user-friendly string.
|
||||
func FileSize(s int64) string {
|
||||
return humanize.Bytes(uint64(s))
|
||||
// sizes := []string{"B", "kB", "MB", "GB", "TB", "PB", "EB"}
|
||||
// return humanize.humanateBytes(uint64(s), 1000, sizes)
|
||||
// return humanize.Bytes(uint64(s))
|
||||
return humanize.IBytes(uint64(s))
|
||||
}
|
||||
|
||||
// Get FileSize bytes value from String.
|
||||
|
||||
Reference in New Issue
Block a user