in tools/mc2bq/pkg/messages/messages.go [145:156]
func formatDataAmount(nBytes uint64) string {
suffixes := []string{" bytes", "KiB", "MiB", "GiB", "TiB"}
amount := nBytes
for _, suffix := range suffixes {
if amount < 1024 {
return fmt.Sprintf("%d%s", amount, suffix)
}
amount /= 1024
}
return fmt.Sprintf("%d%s", amount, suffixes[len(suffixes)-1])
}