summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index 55fc0b50d..e84aea700 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -1986,7 +1986,7 @@ sub check_disk_space {
: $opt{mrtg} eq 'avail' ? 2
: $opt{mrtg} eq 'percent' ? 3 : 2 : 2;
my ($one,$two,$msg) = ('','','');
- for (sort { $b->[$sortby] <=> $a->[$sortby] } keys %stats) {
+ for (sort { $stats{$b}->[$sortby] <=> $stats{$a}->[$sortby] } keys %stats) {
if ($one eq '') {
$one = $stats{$_}->[$sortby];
$msg = $_;