diff --git a/app/helpers/processings_helper.rb b/app/helpers/processings_helper.rb index 003f8c5..a1aa440 100644 --- a/app/helpers/processings_helper.rb +++ b/app/helpers/processings_helper.rb @@ -11,7 +11,7 @@ module ProcessingsHelper range_snapshots = metric_result.metric_configuration_snapshot.range_snapshot range_snapshots.each do |range_snapshot| - return range_snapshot if ((range_snapshot.beginning <= metric_result.value || range_snapshot.beginning = '-INF') && (range_snapshot.end >= metric_result.value || range_snapshot.beginning = '+INF')) + return range_snapshot if ((range_snapshot.beginning <= metric_result.value || range_snapshot.beginning == '-INF') && (range_snapshot.end >= metric_result.value || range_snapshot.beginning == '+INF')) end return nil -- libgit2 0.21.2