Skip to content

Commit 8fa7b51

Browse files
Greg Sabino Mullanemartinmarques
authored andcommitted
Remove tabs, cleanup whitespace
1 parent ac4262e commit 8fa7b51

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

check_postgres.pl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2305,10 +2305,10 @@ sub run_command {
23052305
if ($arg->{dbnumber} and $arg->{dbnumber} != $num) {
23062306
next;
23072307
}
2308-
## Likewise if we have specified "target" database info and this is not our choice
2309-
if ($arg->{target} and $arg->{target} != $db) {
2308+
## Likewise if we have specified "target" database info and this is not our choice
2309+
if ($arg->{target} and $arg->{target} != $db) {
23102310
next;
2311-
}
2311+
}
23122312

23132313
## Just to keep things clean:
23142314
truncate $tempfh, 0;
@@ -7346,9 +7346,9 @@ sub check_sequence {
73467346
FROM $seqname) foo
73477347
};
73487348
}
7349-
# Use UNION ALL to query multiple sequences at once, however if there are too many sequences this can exceed
7349+
# Use UNION ALL to query multiple sequences at once, however if there are too many sequences this can exceed
73507350
# maximum argument length; so split into chunks of 200 sequences or less and iterate over them.
7351-
while (my @seq_sql_chunk = splice @seq_sql, 0, 200) {
7351+
while (my @seq_sql_chunk = splice @seq_sql, 0, 200) {
73527352
my $seqinfo = run_command(join("\nUNION ALL\n", @seq_sql_chunk), { target => $db }); # execute all SQL commands at once
73537353
for my $r2 (@{$seqinfo->{db}[0]{slurp}}) { # now look at all results
73547354
my ($seqname, $last, $slots, $used, $percent, $left) = @$r2{qw/ seqname last_value slots used percent numleft / };
@@ -7373,7 +7373,7 @@ sub check_sequence {
73737373
push @warn => $msg;
73747374
}
73757375
}
7376-
}
7376+
}
73777377
if ($MRTG) {
73787378
my $msg = join ' | ' => map { $_->[0] } @{$seqinfo{$maxp}};
73797379
do_mrtg({one => $maxp, msg => $msg});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy