Fixed realtime range check.
This commit is contained in:
parent
ce6f868ba5
commit
78fc282051
1 changed files with 2 additions and 1 deletions
|
@ -117,7 +117,8 @@ class ReportsController < ApplicationController
|
||||||
match = false
|
match = false
|
||||||
result['aggregations']['time_buckets']['buckets'].each {|item|
|
result['aggregations']['time_buckets']['buckets'].each {|item|
|
||||||
if interval == 'minute'
|
if interval == 'minute'
|
||||||
start_string = start.iso8601.sub(/:\d\d.+?$/, '')
|
item['key_as_string'] = item['key_as_string'].sub(/:\d\d.\d\d\dZ$/, '')
|
||||||
|
start_string = start.iso8601.sub(/:\d\dZ$/, '')
|
||||||
else
|
else
|
||||||
start_string = start.iso8601.sub(/:\d\d:\d\d.+?$/, '')
|
start_string = start.iso8601.sub(/:\d\d:\d\d.+?$/, '')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue