+/- 500ms was too small a fudge factor (-582ms seen in testing), raise to +/- 1000ms

This commit is contained in:
Mark Andrews
2011-12-22 02:15:24 +00:00
parent 20a06bb20e
commit 281a31ad37

View File

@@ -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.40 2011/12/12 12:08:09 marka Exp $
# $Id: tests.sh,v 1.41 2011/12/22 02:15:24 marka Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
@@ -1069,8 +1069,8 @@ check_interval () {
awk -F: '
{
x = ($6+ $5*60000 + $4*3600000) - ($3+ $2*60000 + $1*3600000);
# abs(x) < 500 ms treat as 'now'
if (x < 500 && x > -500)
# abs(x) < 1000 ms treat as 'now'
if (x < 1000 && x > -1000)
x = 0;
# convert to seconds
x = x/1000;