Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions check_postgres.pl
Original file line number Diff line number Diff line change
Expand Up @@ -9042,10 +9042,10 @@ sub check_wal_files {
: msg('wal-numfound', $numfiles);
$db->{perf} .= sprintf '%s=%s;%s;%s',
perfname(msg('files')), $numfiles, $warning, $critical;
if (length $critical and $numfiles > $critical) {
if (length $critical and $numfiles >= $critical) {
add_critical $msg;
}
elsif (length $warning and $numfiles > $warning) {
elsif (length $warning and $numfiles >= $warning) {
add_warning $msg;
}
else {
Expand Down