From 42e65038b0cc36b81bb8c6308ff5e7c8014d5d85 Mon Sep 17 00:00:00 2001 From: Kraust Date: Sun, 14 Jul 2019 10:44:03 -0400 Subject: [PATCH] Changed GPU naming scheme --- src/widgets/temp_freebsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/temp_freebsd.go b/src/widgets/temp_freebsd.go index 01f89dd..3320873 100644 --- a/src/widgets/temp_freebsd.go +++ b/src/widgets/temp_freebsd.go @@ -61,7 +61,7 @@ func collectNvidiaSensors() []sensorMeasurement { for i := range info.GPUS { gpu := info.GPUS[i] var s sensorMeasurement - s.name = strings.ReplaceAll(strings.ToLower(gpu.ProductName), " ", "_") + "_" + strconv.Itoa(i) + "_input" + s.name = gpu.ProductName + " " + strconv.Itoa(i) s.temperature, _ = strconv.ParseFloat(strings.ReplaceAll(gpu.GpuTemp, " C", ""), 10) measurements = append(measurements, s) }