bin/metric-postgres-statstable.rb in sensu-plugins-postgres-0.0.4 vs bin/metric-postgres-statstable.rb in sensu-plugins-postgres-0.0.5

- old
+ new

@@ -57,10 +57,10 @@ option :scheme, description: 'Metric naming scheme, text to prepend to $queue_name.$metric', long: '--scheme SCHEME', default: "#{Socket.gethostname}.postgresql" - def run # rubocop:disable all + def run timestamp = Time.now.to_i con = PG::Connection.new(config[:hostname], config[:port], nil, nil, config[:db], config[:user], config[:password]) request = [ 'select sum(seq_scan) as seq_scan, sum(seq_tup_read) as seq_tup_read,',