From d94887608bb6fdff07a1f3fa5ae259007567e135 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Thu, 31 May 2018 16:00:57 -0700 Subject: don't remove any sensors --- src/widgets/temp_linux.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/widgets/temp_linux.go b/src/widgets/temp_linux.go index e818863..99c2a87 100644 --- a/src/widgets/temp_linux.go +++ b/src/widgets/temp_linux.go @@ -1,19 +1,12 @@ package widgets import ( - "strings" - psHost "github.com/shirou/gopsutil/host" ) func (self *Temp) update() { sensors, _ := psHost.SensorsTemperatures() for _, sensor := range sensors { - // only sensors with input in their name are giving us live temp info - if strings.Contains(sensor.SensorKey, "input") { - // removes '_input' from the end of the sensor name - label := sensor.SensorKey[:strings.Index(sensor.SensorKey, "_input")] - self.Data[label] = int(sensor.Temperature) - } + self.Data[sensor.SensorKey] = int(sensor.Temperature) } } -- cgit v1.2.3