Removed debug messages

This commit is contained in:
Anton Beloglazov 2012-10-20 14:24:17 +11:00
parent 581ce72714
commit 9efe6cf254
2 changed files with 0 additions and 5 deletions

View File

@ -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]

View File

@ -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