mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: fixed RAM pressure level notification key
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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))"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user