func prettyFileSize()

in Sources/Tools/llcastool/CASCommands.swift [72:80]


func prettyFileSize(_ size: UInt64) -> String {
    if size < 100_000 {
        return "\(size) bytes"
    } else if size < 100_000_000 {
        return String(format: "%.1f MB", Double(size) / 1_000_000)
    } else {
        return String(format: "%.1f GB", Double(size) / 1_000_000_000)
    }
}