[check_postgres] [commit] Off by one error, fix by Selena Deckelmann

check_postgres at bucardo.org check_postgres at bucardo.org
Wed Jan 7 15:18:58 UTC 2009


Committed by Greg Sabino Mullane <greg at endpoint.com>

Off by one error, fix by Selena Deckelmann

---
 check_postgres.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/check_postgres.pl b/check_postgres.pl
index fd4a5d7..8dd5199 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -3277,7 +3277,7 @@ sub check_timesync {
 			next;
 		}
 		$db->{perf} = " diff:$diff";
-		my $localpretty = sprintf '%d-%02d-%02d %02d:%02d:%02d', $l[5]+1900, $l[4], $l[3],$l[2],$l[1],$l[0];
+		my $localpretty = sprintf '%d-%02d-%02d %02d:%02d:%02d', $l[5]+1900, $l[4]+1, $l[3],$l[2],$l[1],$l[0];
 		my $msg = qq{timediff=$diff DB=$pgpretty Local=$localpretty};
 
 		if (length $critical and $diff >= $critical) {
-- 
1.6.0.5



More information about the Check_postgres mailing list