fix: sensor typ to static sensor model

This commit is contained in:
2019-02-28 19:48:25 +01:00
parent 1a3a31c5f2
commit 14ce354b32
11 changed files with 129 additions and 99 deletions

View File

@ -45,10 +45,12 @@ func PrintTemperatures(temperatures []*types.Temperature, cnf *config.FluckyConf
tw := tabwriter.NewWriter(w, 0, 0, 3, ' ', 0)
// headlines
for _, sensor := range sensors {
for i, sensor := range sensors {
fmt.Fprintf(tw, "%v\t", sensor.Name())
if i == len(sensors)-1 {
fmt.Fprintf(tw, "\n")
}
}
fmt.Fprintf(tw, "\n")
// find sensor with maximum temperature values
maxLength := 0