Debugging overload detection

This commit is contained in:
Anton Beloglazov 2012-10-20 13:58:16 +11:00
parent d2b9ecc509
commit 33c0792a80

View File

@ -75,6 +75,8 @@ 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