lib/triglav/agent/vertica/monitor.rb in triglav-agent-vertica-1.0.0.rc2 vs lib/triglav/agent/vertica/monitor.rb in triglav-agent-vertica-1.0.0
- old
+ new
@@ -173,10 +173,10 @@
def dates
return @dates if @dates
now = Time.now.localtime(resource.timezone)
@dates = resource.span_in_days.times.map do |i|
- (now - (i * 86000)).strftime('%Y-%m-%d')
+ (now - (i * 86400)).strftime('%Y-%m-%d')
end
end
def build_latest_epoch(rows)
rows.map {|row| row[2] }.max