From 07907fa31a15480e918df1b93c0bca0e3ad8b5b5 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 2 May 2011 01:35:04 +0000 Subject: [PATCH] handle end of day --- bin/tests/system/autosign/tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/tests/system/autosign/tests.sh b/bin/tests/system/autosign/tests.sh index 0ace602de0..67ff40fa6f 100644 --- a/bin/tests/system/autosign/tests.sh +++ b/bin/tests/system/autosign/tests.sh @@ -14,7 +14,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: tests.sh,v 1.23 2011/05/01 21:36:33 marka Exp $ +# $Id: tests.sh,v 1.24 2011/05/02 01:35:04 marka Exp $ SYSTEMTESTTOP=.. . $SYSTEMTESTTOP/conf.sh @@ -896,10 +896,10 @@ check_interval () { sed 's/\.//g' | awk -F: ' { - if ($6 == 0) - $6 = 25; x = ($6+ $5*60000 + $4*3600000) - ($3+ $2*60000 + $1*3600000); x = x/1000; + if (x < 0) + x = x + 24*3600; if (x != int(x)) x = int(x + 1); if (x > interval)