Ignore temperature readings when no consumers are present
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
56d33782c8
commit
5b3f7708c0
1 changed files with 4 additions and 1 deletions
|
@ -167,7 +167,10 @@ func readSensors(hub *sentry.Hub) {
|
||||||
metrics.TemperatureSensorReadingStatus.WithLabelValues(sensor.Name, "ok").Inc()
|
metrics.TemperatureSensorReadingStatus.WithLabelValues(sensor.Name, "ok").Inc()
|
||||||
}
|
}
|
||||||
|
|
||||||
Reading <- r
|
select {
|
||||||
|
case Reading <- r:
|
||||||
|
default:
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func triggerBulkRead() error {
|
func triggerBulkRead() error {
|
||||||
|
|
Loading…
Reference in a new issue