bin/check-elb-latency.rb in sensu-plugins-aws-2.1.0 vs bin/check-elb-latency.rb in sensu-plugins-aws-2.1.1

- old
+ new

@@ -121,10 +121,10 @@ period: config[:period] } end def latest_value(metric) - metric.statistics(statistics_options.merge unit: 'Seconds').datapoints.sort_by { |datapoint| datapoint[:timestamp] }.last[config[:statistics]] + metric.statistics(statistics_options.merge(unit: 'Seconds')).datapoints.sort_by { |datapoint| datapoint[:timestamp] }.last[config[:statistics]] end def flag_alert(severity, message) @severities[severity] = true @message += message