From fb63ece91b4a968a4355e4598e731bb1f6400726 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Fri, 23 Feb 2024 19:15:27 +0100 Subject: [PATCH] fix: fixed GPU temperature converting in the popup chart (#1809) --- Modules/GPU/popup.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Modules/GPU/popup.swift b/Modules/GPU/popup.swift index 18b034b5..b855f257 100644 --- a/Modules/GPU/popup.swift +++ b/Modules/GPU/popup.swift @@ -269,7 +269,11 @@ private class GPUView: NSStackView { } if let value = gpu.temperature { - self.temperatureChart?.addValue(value/100) + if let temp = Double(temperature(value/100).replacingOccurrences(of: "C", with: "").replacingOccurrences(of: "F", with: "").digits) { + self.temperatureChart?.addValue(temp) + } else { + self.temperatureChart?.addValue(value/100) + } } if let value = gpu.utilization { self.utilizationChart?.addValue(value)