bin/check-postgres-replication.rb in sensu-plugins-postgres-1.4.5 vs bin/check-postgres-replication.rb in sensu-plugins-postgres-1.4.6

- old
+ new

@@ -104,9 +104,10 @@ ((m_segment.hex - s_segment.hex) * m_segbytes) + (m_offset.hex - s_offset.hex) end def check_vsn(conn) pg_vsn = conn.exec("SELECT current_setting('server_version')").getvalue(0, 0) + pg_vsn = pg_vsn.split(' ')[0] Gem::Version.new(pg_vsn) < Gem::Version.new('10.0') && Gem::Version.new(pg_vsn) >= Gem::Version.new('9.0') end def run ssl_mode = config[:ssl] ? 'require' : 'prefer'