Skip to content

Commit d720417

Browse files
author
David Christensen
committed
Fix another version-detection issue in connections action
1 parent d9505e4 commit d720417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_postgres.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4615,7 +4615,7 @@ sub check_connection {
46154615
return;
46164616
}
46174617

4618-
my $ver = ($db->{slurp}[0]{v} =~ /(\d+\.\d+\S+)/) ? $1 : '';
4618+
my $ver = ($db->{slurp}[0]{v} =~ /((?:\b1\d\S+)|(?:\d+\.\d+\S+))/) ? $1 : '';
46194619

46204620
$MRTG and do_mrtg({one => $ver ? 1 : 0});
46214621

0 commit comments

Comments
 (0)