diff --git a/neat/common.py b/neat/common.py index a6b2ff1..ea44908 100644 --- a/neat/common.py +++ b/neat/common.py @@ -118,10 +118,6 @@ def physical_cpu_mhz_total(vir_connection): :return: The total CPU frequency in MHz. :rtype: int """ - log.debug('physical_cpu_count: ' + str(physical_cpu_count(vir_connection))) - log.debug('physical_cpu_mhz: ' + str(physical_cpu_mhz(vir_connection))) - log.debug('physical_cpu_mhz_total: ' + str(physical_cpu_count(vir_connection) * \ - physical_cpu_mhz(vir_connection))) return physical_cpu_count(vir_connection) * \ physical_cpu_mhz(vir_connection) diff --git a/tests/test_common.py b/tests/test_common.py index 647ed36..5d70b80 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -59,7 +59,7 @@ class Common(TestCase): def physical_cpu_mhz(x=int_(min=0, max=8)): with MockTransaction: connection = libvirt.virConnect() - expect(connection).getInfo().and_return([0, x, 0]).once() + expect(connection).getInfo().and_return([0, 0, 0, x]).once() assert common.physical_cpu_mhz(connection) == x @qc(10)