graph: fix divide for py3
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 10 Apr 2018 03:48:35 +0000 (15:48 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Fri, 13 Apr 2018 05:27:13 +0000 (07:27 +0200)
commitfadd2cec39ab38215c36e4d996ced38b95f66d37
tree6139514bfbe6910fd69f9eaf41f272066e917db9
parent470499fda32f10769a03df5c9a68a64d4261b2e6
graph: 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>
python/samba/graph.py