File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,15 @@ def index
19
19
if @country_measurements . size > 0
20
20
@country_measurements [ 0 ] . is_suspicious = false
21
21
22
- ( 1 ..@country_measurements . size -1 ) . each do |i |
23
- @country_measurements [ i ] . is_suspicious = false
24
-
25
- if ( ( @country_measurements [ i ] . NumberOfClientsSplitByClientAndByServer - @country_measurements [ i -1 ] . NumberOfClientsSplitByClientAndByServer ) /1 ) < droplimit
26
- @country_measurements [ i ] . is_suspicious = true
27
- end
28
- end
22
+ ( 1 ..@country_measurements . size -1 ) . each do |i |
23
+ @country_measurements [ i ] . is_suspicious = false
24
+ begin
25
+ if ( ( @country_measurements [ i ] . NumberOfClientsSplitByClientAndByServer - @country_measurements [ i -1 ] . NumberOfClientsSplitByClientAndByServer ) /1 ) < droplimit
26
+ @country_measurements [ i ] . is_suspicious = true
27
+ end
28
+ rescue
29
+ end
30
+ end
29
31
end
30
32
31
33
respond_to do |format |
You can’t perform that action at this time.
0 commit comments