Skip to content

Commit

Permalink
Fix transposed Celsius / Fahrenheit
Browse files Browse the repository at this point in the history
  • Loading branch information
sratcliffe committed Nov 10, 2017
1 parent 88e5cc3 commit 4741872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvidia_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (e *Exporter) GetTelemetryFromNVML() {
e.gauges["gpu_percent"].WithLabelValues(id, device.DeviceUUID, device.DeviceName).Set(float64(gpuPercent))
e.gauges["memory_percent"].WithLabelValues(id, device.DeviceUUID, device.DeviceName).Set(float64(memoryPercent))

if tempF, tempC, err = device.GetTemperature(); err != nil {
if tempC, tempF, err = device.GetTemperature(); err != nil {
goto ErrorFetching
}
e.gauges["temperature_celsius"].WithLabelValues(id, device.DeviceUUID, device.DeviceName).Set(float64(tempC))
Expand Down

0 comments on commit 4741872

Please sign in to comment.