From: Greg Sabino Mullane Date: Wed, 7 Jan 2009 15:15:02 +0000 (-0500) Subject: Off by one error, fix by Selena Deckelmann X-Git-Tag: 2.9.0~197 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=61741d8c21d2a9a4593e410f3be2b3f1828c5452;p=check_postgres.git Off by one error, fix by Selena Deckelmann --- diff --git a/check_postgres.pl b/check_postgres.pl index fd4a5d70b..8dd5199c3 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) {