mirror of
https://github.com/minio/minio.git
synced 2025-11-10 22:10:12 -05:00
Improve duration humanization. (#4071)
This commit is contained in:
2
vendor/github.com/dustin/go-humanize/number.go
generated
vendored
2
vendor/github.com/dustin/go-humanize/number.go
generated
vendored
@@ -160,7 +160,7 @@ func FormatFloat(format string, n float64) string {
|
||||
intf, fracf := math.Modf(n + renderFloatPrecisionRounders[precision])
|
||||
|
||||
// generate integer part string
|
||||
intStr := strconv.Itoa(int(intf))
|
||||
intStr := strconv.FormatInt(int64(intf), 10)
|
||||
|
||||
// add thousand separator if required
|
||||
if len(thousandStr) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user