Skip to content

Commit

Permalink
Forget after a bit longer than 2 refreshes.
Browse files Browse the repository at this point in the history
  • Loading branch information
xperimental committed Jun 16, 2019
1 parent 2e4656f commit ab8b9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func newCollector(dataReader func() (sensorData, error), refreshDuration time.Du
return &flowercareCollector{
Sensor: sensorInfo,
RefreshDuration: refreshDuration,
ForgetDuration: refreshDuration * 2,
ForgetDuration: time.Duration(float64(refreshDuration) * 2.1),

dataReader: dataReader,
upMetric: prometheus.NewGauge(prometheus.GaugeOpts{
Expand Down

0 comments on commit ab8b9cc

Please sign in to comment.