1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-03-21 18:18:41 +00:00

fixes a minor bug in energy model instrument

This commit is contained in:
Vasilis Flouris 2015-06-11 13:09:04 +01:00 committed by devlab
parent 67896dfd86
commit b31a9bd61a

View File

@ -649,7 +649,7 @@ class EnergyModelInstrument(Instrument):
spec.workload.validate() spec.workload.validate()
new_specs.append(spec) new_specs.append(spec)
for old_spec in old_specs: for old_spec in old_specs:
if old_spec.workload_name in ['sysbench', 'dhrystone']: if old_spec.workload_name not in ['sysbench', 'dhrystone']:
raise ConfigError('Only sysbench and dhrystone workloads currently supported for energy_model generation.') raise ConfigError('Only sysbench and dhrystone workloads currently supported for energy_model generation.')
for freq in cluster_frequencies: for freq in cluster_frequencies:
for num_cpus in xrange(1, self.number_of_cpus[cluster] + 1): for num_cpus in xrange(1, self.number_of_cpus[cluster] + 1):