AppDelegate // Boost memory check maximum value to 768MB.

This commit is contained in:
ShikiSuen 2023-09-12 04:08:52 +08:00
parent a02613a28a
commit 6aa74c62b8
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ public extension AppDelegate {
guard let currentMemorySizeInBytes = NSApplication.memoryFootprint else { return 0 }
let currentMemorySize: Double = (Double(currentMemorySizeInBytes) / 1024 / 1024).rounded(toPlaces: 1)
switch currentMemorySize {
case 512...:
case 768...:
vCLog("WARNING: EXCESSIVE MEMORY FOOTPRINT (\(currentMemorySize)MB).")
let userNotification = NSUserNotification()
userNotification.title = NSLocalizedString("vChewing", comment: "")