Added physical_cpu_mhz to the state of the data collector
This commit is contained in:
parent
296a39c540
commit
2bf8f18aec
@ -166,6 +166,7 @@ def init_state(config):
|
||||
'previous_cpu_time': dict(),
|
||||
'vir_connection': vir_connection,
|
||||
'physical_cpus': physical_cpus,
|
||||
'physical_cpu_mhz': host_cpu_mhz,
|
||||
'physical_core_mhz': host_cpu_mhz / physical_cpus,
|
||||
'db': db}
|
||||
|
||||
|
@ -79,6 +79,7 @@ class Collector(TestCase):
|
||||
assert isinstance(state['previous_cpu_time'], dict)
|
||||
assert state['vir_connection'] == vir_connection
|
||||
assert state['physical_cpus'] == physical_cpus
|
||||
assert state['physical_cpu_mhz'] == mhz
|
||||
assert state['physical_core_mhz'] == mhz / physical_cpus
|
||||
assert state['db'] == db
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user