FIx Memory being +1 GB

This commit is contained in:
Stossy11 2025-03-06 12:50:08 +11:00
parent ebe1d183ef
commit 85ad96109e
2 changed files with 2 additions and 2 deletions

View File

@ -544,9 +544,9 @@ struct SettingsView: View {
labelWithIcon("Device: \(getDeviceModel())", iconName: iconName)
if ProcessInfo.processInfo.isiOSAppOnMac {
labelWithIcon("Device Memory: \(String(format: "%.0f GB", Double(totalMemory) / (1024 * 1024 * 1024)))", iconName: "memorychip.fill")
labelWithIcon("Memory: \(String(format: "%.0f GB", Double(totalMemory) / (1024 * 1024 * 1024)))", iconName: "memorychip.fill")
} else {
labelWithIcon("Device Memory: \(String(format: "%.0f GB", (Double(totalMemory) / (1024 * 1024 * 1024) + 1)))", iconName: "memorychip.fill")
labelWithIcon("Device Memory: \(String(format: "%.0f GB", Double(totalMemory) / (1024 * 1024 * 1024)))", iconName: "memorychip.fill")
}
labelWithIcon("\(deviceType) \(UIDevice.current.systemVersion)", iconName: "applelogo")