From: Douglas Bagnall Date: Wed, 4 Mar 2015 00:05:37 +0000 (+1300) Subject: KCC: correct the comparison for lost link timeout X-Git-Tag: tevent-0.9.25~397 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ddb51493734b3aa3d3c7a48e78045ea16f7902a4;p=thirdparty%2Fsamba.git KCC: correct the comparison for lost link timeout Signed-off-by: Douglas Bagnall Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/kcc_utils.py b/python/samba/kcc_utils.py index 51f540226ad..9980c6cb40d 100644 --- a/python/samba/kcc_utils.py +++ b/python/samba/kcc_utils.py @@ -1620,7 +1620,7 @@ class Site(object): i_idx = j_idx t_time = 0 - elif ntnow < (cursor.last_sync_success - f): + elif ntnow - cursor.last_sync_success > f: i_idx = 0 t_time = 0 else: