diff options
author | Greg Sabino Mullane | 2009-04-14 17:47:26 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2009-04-14 17:47:26 +0000 |
commit | 5c83036f84f8a3579cadc3e3080142918a500105 (patch) | |
tree | 6303c20c4f5c667d8c44455e84a9d447ecb5730c /check_postgres.pl | |
parent | b584b2b062be8f94f4321f142ff8b4cee24ae18e (diff) |
Testing tweaks.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index dcdf7bc31..1ebe1b5db 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2785,8 +2785,8 @@ sub check_fsm_pages { my $info = run_command($SQL, {regex => qr[\d+] } ); for $db (@{$info->{db}}) { - SLURP: while ($db->{slurp} =~ /\s*(\d+) \|\s+(\d+) \|\s+(\d+)$/gsm) { - my ($pages,$max,$percent) = ($1,$2,$3); + SLURP: while ($db->{slurp} =~ /\s*(\d*) \|\s+(\d+) \|\s+(\d*)$/gsm) { + my ($pages,$max,$percent) = ($1||0,$2,$3||0); if ($MRTG) { do_mrtg({one => $percent, two => $pages}); |