+/- 500ms was too small a fudge factor (-582ms seen in testing), raise to +/- 1000ms
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user