diff options
author | Greg Sabino Mullane | 2011-07-12 11:45:26 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2011-07-12 11:45:26 +0000 |
commit | a3e0dc97939c0e2a4de067c3b0a7ead3203c3fb2 (patch) | |
tree | 5f153a08de2fbd67a396f7782b85aed7946bb958 /check_postgres.pl | |
parent | d21a5a1885b9886b68b7c18b70eead6819c72bcc (diff) |
Use the entire sub call for the "totaltime" counter for same_schema.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index 074761c1b..592b7e3c7 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -5963,6 +5963,9 @@ sub check_same_schema { ## Warning and critical are not used ## The filter argument is supported + ## We override the usual $db->{totaltime} with our own counter + my $start = [gettimeofday()]; + ## Check for filtering rules, then store inside opt{filtered} my %filter; if (exists $opt{filter}) { @@ -6179,6 +6182,9 @@ sub check_same_schema { } } + ## Set the total time + $db->{totaltime} = sprintf '%.2f', tv_interval($start); + ## Comparison is done, let's report the results if (! $opt{failcount}) { add_ok msg('ss-matched'); |