Turn on strict memory safety for the macOS app

This commit is contained in:
Ian Gulliver
2026-10-17 09:57:28 -07:00
parent 3541abb1b1
commit 7452bd5936
9 changed files with 33 additions and 32 deletions
+1 -1
View File
@@ -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 {