Skip to content

Commit b030ffa

Browse files
committed
Fix setting/s bug in handle_zero_reports
1 parent 07d8102 commit b030ffa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/stackify/metrics/metrics_client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ def handle_zero_reports current_time
157157
agg.occurred_utc = current_time
158158
case aggregate.metric_type
159159
when Stackify::Metrics::METRIC_TYPES[:metric_last]
160-
setting.autoreport_last_value_if_nothing_reported = false #do not allow this
160+
settings.autoreport_last_value_if_nothing_reported = false #do not allow this
161161
when Stackify::Metrics::METRIC_TYPES[:counter]
162-
setting.autoreport_last_value_if_nothing_reported = false #do not allow this
162+
settings.autoreport_last_value_if_nothing_reported = false #do not allow this
163163
end
164164
if settings.autoreport_zero_if_nothing_reported
165165
agg.count = 1

0 commit comments

Comments
 (0)