fix: fixed RAM pressure level notification key

This commit is contained in:
Serhiy Mytrovtsiy
2023-12-26 17:59:33 +01:00
parent c1737548a0
commit c3ee6c6b29
3 changed files with 3 additions and 3 deletions

View File

@@ -254,7 +254,7 @@ public class TemperatureReader: Reader<Double> {
case .m1, .m1Pro, .m1Max, .m1Ultra:
self.list = ["Tp09", "Tp0T", "Tp01", "Tp05", "Tp0D", "Tp0H", "Tp0L", "Tp0P", "Tp0X", "Tp0b"]
case .m2, .m2Pro, .m2Max, .m2Ultra:
self.list = ["Tp1h", "Tp1t", "Tp1p", "Tp1l", "Tp01", "Tp05", "Tp09", "Tp0D","Tp0X","Tp0b","Tp0f","Tp0j"]
self.list = ["Tp1h", "Tp1t", "Tp1p", "Tp1l", "Tp01", "Tp05", "Tp09", "Tp0D", "Tp0X", "Tp0b", "Tp0f", "Tp0j"]
case .m3, .m3Pro, .m3Max, .m3Ultra:
self.list = ["Te05", "Te0L", "Te0P", "Te0S", "Tf04", "Tf09", "Tf0A", "Tf0B", "Tf0D", "Tf0E", "Tf44", "Tf49", "Tf4A", "Tf4B", "Tf4D", "Tf4E"]
default: break

View File

@@ -106,7 +106,7 @@ class Notifications: NotificationsWrapper {
value: Double(value.pressureLevel.rawValue),
threshold: Double(threshold.rawValue),
title: title,
subtitle: "\(localizedString("Memory pressure")): \(thresholdPair.key)"
subtitle: "\(localizedString("Memory pressure")): \(localizedString(thresholdPair.value))"
)
}
}

View File

@@ -370,7 +370,7 @@ internal let SensorsList: [Sensor] = [
Sensor(key: "Tm08", name: "Memory 3", group: .sensor, type: .temperature, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra]),
Sensor(key: "Tm09", name: "Memory 4", group: .sensor, type: .temperature, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra]),
//M2
// M2
Sensor(key: "Tp1h", name: "CPU efficiency core 1", group: .CPU, type: .temperature, platforms: [.m2, .m2Max, .m2Pro, .m2Ultra], average: true),
Sensor(key: "Tp1t", name: "CPU efficiency core 2", group: .CPU, type: .temperature, platforms: [.m2, .m2Max, .m2Pro, .m2Ultra], average: true),
Sensor(key: "Tp1p", name: "CPU efficiency core 3", group: .CPU, type: .temperature, platforms: [.m2, .m2Max, .m2Pro, .m2Ultra], average: true),