From 68d1a0c86ff90515573d670a4935e30e196034fb Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Thu, 13 Jun 2024 18:25:31 +0200 Subject: [PATCH] fix: fixed GPU temperature value in the chart (#1984) --- Modules/GPU/popup.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/GPU/popup.swift b/Modules/GPU/popup.swift index b855f257..658ac011 100644 --- a/Modules/GPU/popup.swift +++ b/Modules/GPU/popup.swift @@ -269,10 +269,10 @@ private class GPUView: NSStackView { } if let value = gpu.temperature { - if let temp = Double(temperature(value/100).replacingOccurrences(of: "C", with: "").replacingOccurrences(of: "F", with: "").digits) { - self.temperatureChart?.addValue(temp) + if let temp = Double(temperature(value).replacingOccurrences(of: "C", with: "").replacingOccurrences(of: "F", with: "").digits) { + self.temperatureChart?.addValue(temp/100) } else { - self.temperatureChart?.addValue(value/100) + self.temperatureChart?.addValue(value) } } if let value = gpu.utilization {