in report/reporter.go [59:73]
func humanReadableBytes(bytes int64) string {
if bytes < 1024 {
return fmt.Sprintf("%d B", bytes)
}
if bytes < 1024*1024 {
return fmt.Sprintf("%.2f KB", float64(bytes)/1024)
}
if bytes < 1024*1024*1024 {
return fmt.Sprintf("%.2f MB", float64(bytes)/1024/1024)
}
return fmt.Sprintf("%.2f GB", float64(bytes)/1024/1024/1024)
}