mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: fixed GPU temperature value in the chart (#1984)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user