diff options
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index b7c8417d0..5de33d524 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -5131,7 +5131,7 @@ sub check_locks { ## If not specific errors, just use the total my $ok = 1; - for my $type (keys %totallock) { + for my $type (sort keys %totallock) { if ($critical and exists $critical->{$type} and $totallock{$type} >= $critical->{$type}) { ($type eq 'total') ? add_critical msg('locks-msg2', $totallock{total}) |