From a3e0dc97939c0e2a4de067c3b0a7ead3203c3fb2 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 12 Jul 2011 07:45:26 -0400 Subject: Use the entire sub call for the "totaltime" counter for same_schema. --- check_postgres.pl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'check_postgres.pl') 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'); -- cgit v1.2.3