Skip to content

Commit 792874a

Browse files
committed
Bug fix
1 parent 128a0b1 commit 792874a

12 files changed

Lines changed: 69 additions & 69 deletions

File tree

Mectrics/Alerts/ThresholdMonitor.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,17 +273,17 @@ final class ThresholdMonitor {
273273
if id == .sensors {
274274
content.body = String(
275275
localized: "alert.body.temp",
276-
defaultValue: "CPU temperature is \(measured)°C above your \(rule.thresholdPercent)°C threshold."
276+
defaultValue: "CPU temperature is \(measured)°C, above your \(rule.thresholdPercent)°C threshold."
277277
)
278278
} else {
279279
content.body = isBelowRule(id)
280280
? String(
281281
localized: "alert.body.below",
282-
defaultValue: "\(id.localizedName) is at \(measured)% below your \(rule.thresholdPercent)% threshold."
282+
defaultValue: "\(id.localizedName) is at \(measured)%, below your \(rule.thresholdPercent)% threshold."
283283
)
284284
: String(
285285
localized: "alert.body.above",
286-
defaultValue: "\(id.localizedName) is at \(measured)% above your \(rule.thresholdPercent)% threshold."
286+
defaultValue: "\(id.localizedName) is at \(measured)%, above your \(rule.thresholdPercent)% threshold."
287287
)
288288
}
289289
content.sound = .default

Mectrics/Diagnostics/SystemSummary.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ enum SystemSummaryBuilder {
5656
return SystemSummaryInput(
5757
appVersion: bundle.object(
5858
forInfoDictionaryKey: "CFBundleShortVersionString"
59-
) as? String ?? "",
59+
) as? String ?? "",
6060
appBuild: bundle.object(
6161
forInfoDictionaryKey: "CFBundleVersion"
62-
) as? String ?? "",
62+
) as? String ?? "",
6363
operatingSystem:
6464
ProcessInfo.processInfo.operatingSystemVersionString,
6565
architecture: architecture(),

Mectrics/MenuBar/MenuBarComponent.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,12 @@ extension MenuBarText {
138138
// for a battery that simply did not report them.
139139
case .health:
140140
guard let health = sample.detail["healthPercent"] else {
141-
return .text("")
141+
return .text("")
142142
}
143143
return .text("\(Int(health))%")
144144
case .cycles:
145145
guard let cycles = sample.detail["cycleCount"] else {
146-
return .text("")
146+
return .text("")
147147
}
148148
return .text("\(Int(cycles))")
149149
case .netActivity:

Mectrics/Onboarding/OnboardingView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ struct OnboardingView: View {
259259
}
260260

261261
private func previewValue(for id: MetricID) -> String {
262-
guard let sample = model.latest[id] else { return "" }
262+
guard let sample = model.latest[id] else { return "" }
263263
switch id {
264264
case .cpu, .memory, .battery, .disk, .gpu, .bluetooth:
265265
return MetricFormat.percent(sample.value)

Mectrics/Release/ReleaseExperienceWindows.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ private struct AboutMectricsView: View {
149149
let bundle = Bundle.main
150150
let version = bundle.object(
151151
forInfoDictionaryKey: "CFBundleShortVersionString"
152-
) as? String ?? ""
152+
) as? String ?? ""
153153
let build = bundle.object(
154154
forInfoDictionaryKey: "CFBundleVersion"
155-
) as? String ?? ""
155+
) as? String ?? ""
156156
return String(
157157
localized: "about.versionBuild",
158158
defaultValue: "Version \(version) (\(build))"

0 commit comments

Comments
 (0)