[bugfix]for division use accurate division

for now / just get int value ,this will lead method
filter_destination_hosts return 0 host
because self.threshold / 100 * host.vcpus is 0
so we need use accurate division to change this

close-bug: 1689269

Change-Id: I5663951ce750d6c4580a507ccfc0268baea0685f
This commit is contained in:
zhangjianfeng 2017-05-08 18:23:40 +08:00
parent 38e4255ec0
commit 2b152bf17c

@ -46,6 +46,7 @@ hosts nodes.
algorithm with `CONTINUOUS` audits.
"""
from __future__ import division
import datetime
from oslo_config import cfg