Turn on strict memory safety for the macOS app
This commit is contained in:
@@ -30,7 +30,7 @@ private func bytes(_ n: Int64) -> String {
|
||||
v /= 1024
|
||||
i += 1
|
||||
}
|
||||
return String(format: i == 0 ? "%.0f %@" : "%.1f %@", v, units[i])
|
||||
return "\(v.formatted(.number.precision(.fractionLength(i == 0 ? 0 : 1)).grouping(.never))) \(units[i])"
|
||||
}
|
||||
|
||||
private func resetText(_ unixSeconds: Double) -> String {
|
||||
|
||||
Reference in New Issue
Block a user