main
Lynn 4 years ago
parent 0ec96bc064
commit b1977c242d
No known key found for this signature in database
GPG Key ID: 9E60BEE0555C367B

@ -216,7 +216,8 @@ func checkBinarySizeActionFunc(c *cli.Context) (err error) {
// that output is much easier to reason about than the `35223432`
// that you would see output without the rounding
fileSize := fileInfo.Size()
roundedFileSize := math.Round(float64(fileSize)/float64(1000000)*10) / 10
fileSizeInMB := float64(fileSize) / float64(1000000)
roundedFileSize := math.Round(fileSizeInMB*10) / 10
roundedFileSizeString := fmt.Sprintf(mbStringFormatter, roundedFileSize)
// check against bounds

Loading…
Cancel
Save