vendor: fix leveldb crash when bigger than 1 TiB

This commit is contained in:
timothy
2018-05-01 19:00:12 +02:00
committed by Péter Szilágyi
parent 9f6af6f812
commit a1949d0788
3 changed files with 33 additions and 29 deletions

View File

@ -20,7 +20,7 @@ func shorten(str string) string {
return str[:3] + ".." + str[len(str)-3:]
}
var bunits = [...]string{"", "Ki", "Mi", "Gi"}
var bunits = [...]string{"", "Ki", "Mi", "Gi", "Ti"}
func shortenb(bytes int) string {
i := 0