diff options
author | Caleb Bassi <calebjbassi@gmail.com> | 2018-05-31 16:00:57 -0700 |
---|---|---|
committer | Caleb Bassi <calebjbassi@gmail.com> | 2018-05-31 16:00:57 -0700 |
commit | d94887608bb6fdff07a1f3fa5ae259007567e135 (patch) | |
tree | 03ecc81ecce915989f837ecae7e738ab97a35c01 | |
parent | fa70da84a3624a31095fe7f1d89f9bd2a71e8be6 (diff) |
don't remove any sensorsissue-37
-rw-r--r-- | src/widgets/temp_linux.go | 9 |
1 files changed, 1 insertions, 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) } } |