summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-12-14 04:29:06 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-14 04:29:06 +0000
commit7504787fe62ad20e4237624440911bcde77b4393 (patch)
treeedd3d7ec66b923ba65e122ae3d741eee7c404ce2
parent01f4b78ff76fff311a7a453d6d8d90f318847c7c (diff)
parent8132273c12f1f6e5ce0bbd44cffc8bd642bcb706 (diff)
Merge "NSB: Fix IndexError in pin_vcpu_for_perf" into stable/euphrates
-rw-r--r--yardstick/benchmark/contexts/standalone/model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/benchmark/contexts/standalone/model.py b/yardstick/benchmark/contexts/standalone/model.py
index ffd8858d9..45ae3c18a 100644
--- a/yardstick/benchmark/contexts/standalone/model.py
+++ b/yardstick/benchmark/contexts/standalone/model.py
@@ -222,7 +222,7 @@ class Libvirt(object):
soc_cpu = sys_obj.get_core_socket()
sys_cpu = int(soc_cpu["cores_per_socket"])
cores = "%s-%s" % (soc_cpu[socket][0], soc_cpu[socket][sys_cpu - 1])
- if int(soc_cpu["thread_per_core"]):
+ if int(soc_cpu["thread_per_core"]) > 1:
threads = "%s-%s" % (soc_cpu[socket][sys_cpu], soc_cpu[socket][-1])
cpuset = "%s,%s" % (cores, threads)
return cpuset