Commit d907b3413b1c1ebdc9e814012c6600208a448b53
Committed by
Rafael Manzo
1 parent
9c27ac16
Exists in
colab
and in
4 other branches
Fixed repository acceptance tests.
Signed off by: Heitor Reis <marcheing@gmail.com>
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
app/helpers/processings_helper.rb
... | ... | @@ -11,7 +11,7 @@ module ProcessingsHelper |
11 | 11 | range_snapshots = metric_result.metric_configuration.kalibro_ranges |
12 | 12 | |
13 | 13 | range_snapshots.each do |range_snapshot| |
14 | - return range_snapshot if ((range_snapshot.beginning <= metric_result.value || range_snapshot.beginning == '-INF') && (range_snapshot.end >= metric_result.value || range_snapshot.beginning == '+INF')) | |
14 | + return range_snapshot if ((range_snapshot.beginning.to_f <= metric_result.value || range_snapshot.beginning == '-INF') && (range_snapshot.end.to_f >= metric_result.value || range_snapshot.beginning == 'INF')) | |
15 | 15 | end |
16 | 16 | |
17 | 17 | return nil | ... | ... |