오타 수정
This commit is contained in:
parent
8191d0922c
commit
a62d37bafa
|
@ -91,13 +91,13 @@ func (m *influxMetric) StartLogging() {
|
||||||
case <-ticker:
|
case <-ticker:
|
||||||
break checker
|
break checker
|
||||||
case changedSpeed := <-m.fanSpeedConsumer:
|
case changedSpeed := <-m.fanSpeedConsumer:
|
||||||
if point, err := m.getFanspeedPoint(changedSpeed); err != nil {
|
if point, err := m.getFanspeedPoint(changedSpeed); err == nil {
|
||||||
pointList = append(pointList, point)
|
pointList = append(pointList, point)
|
||||||
} else {
|
} else {
|
||||||
influxLogger.Debugf("id %d speed err %s", changedSpeed.Id, err)
|
influxLogger.Debugf("id %d speed err %s", changedSpeed.Id, err)
|
||||||
}
|
}
|
||||||
case changedTempeture := <-m.tempetureConsumer:
|
case changedTempeture := <-m.tempetureConsumer:
|
||||||
if point, err := m.getTempeturePoint(changedTempeture); err != nil {
|
if point, err := m.getTempeturePoint(changedTempeture); err == nil {
|
||||||
pointList = append(pointList, point)
|
pointList = append(pointList, point)
|
||||||
} else {
|
} else {
|
||||||
influxLogger.Debugf("id %d tempeture err %s", changedTempeture.Id, err)
|
influxLogger.Debugf("id %d tempeture err %s", changedTempeture.Id, err)
|
||||||
|
|
Loading…
Reference in New Issue