[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:
@@ -46,6 +46,7 @@ hosts nodes.
|
|||||||
algorithm with `CONTINUOUS` audits.
|
algorithm with `CONTINUOUS` audits.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import division
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
|||||||
Reference in New Issue
Block a user