mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
kcc/kcc_utils: fix divide for py3
`/` will return float other than int in py3. Use `//` to keep consistent with py2. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
09081eae3d
commit
949109442f
@ -1669,7 +1669,7 @@ class Site(object):
|
||||
#
|
||||
# Note: We don't want to divide by zero here so they must
|
||||
# have meant "f" instead of "o!interSiteTopologyFailover"
|
||||
k_idx = (i_idx + ((self.nt_now - t_time) / f)) % len(D_sort)
|
||||
k_idx = (i_idx + ((self.nt_now - t_time) // f)) % len(D_sort)
|
||||
|
||||
# The local writable DC acts as an ISTG for its site if and
|
||||
# only if dk is the nTDSDSA object for the local DC. If the
|
||||
|
Loading…
Reference in New Issue
Block a user