mirror of
https://github.com/utmapp/UTM.git
synced 2026-10-12 02:24:01 +00:00
config(iOS): use physical RAM limit when limit is raised
Otherwise the checks won't kick in on a jailbroken device.
This commit is contained in:
@@ -97,7 +97,7 @@ struct VMConfigSystemView: View {
|
||||
#if os(iOS) || os(visionOS)
|
||||
let availableMemory = UInt64(os_proc_available_memory())
|
||||
if availableMemory > 0 {
|
||||
totalDeviceMemory = availableMemory
|
||||
totalDeviceMemory = min(availableMemory, totalDeviceMemory)
|
||||
}
|
||||
#endif
|
||||
let actualJitSizeMib = jitSizeMib == 0 ? memorySizeMib / 4 : jitSizeMib
|
||||
|
||||
Reference in New Issue
Block a user