Removed debug messages
This commit is contained in:
parent
581ce72714
commit
9efe6cf254
@ -407,7 +407,4 @@ def vm_mhz_to_percentage(vms, physical_cpu_mhz):
|
||||
:rtype: list(float)
|
||||
"""
|
||||
data = itertools.izip_longest(*vms.values(), fillvalue=0)
|
||||
log.debug('physical_cpu_mhz: ' + str(physical_cpu_mhz))
|
||||
log.debug('sum_mhz: ' + str([float(sum(x)) for x in data]))
|
||||
log.debug('host_cpu: ' + str([float(sum(x)) / physical_cpu_mhz for x in data]))
|
||||
return [float(sum(x)) / physical_cpu_mhz for x in data]
|
||||
|
@ -75,8 +75,6 @@ def threshold(threshold, utilization):
|
||||
:return: The decision of the algorithm.
|
||||
:rtype: bool
|
||||
"""
|
||||
log.debug('Utilization: ' + str(utilization[-1]))
|
||||
log.debug('Threshold: ' + str(threshold))
|
||||
if utilization:
|
||||
return utilization[-1] > threshold
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user