aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-12-12 16:01:12 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-12 16:01:12 +0000
commitedc45f4034d3f5b3d225b66da3839d4fe60f461f (patch)
tree6f6abcb0b9b0ef94b1d0883ecf65f5d31b7bce63
parentf11f755048b23a66962304e61691cab7cc639f29 (diff)
parent78fff64b00e255d7e4624bcc62faddc0d135e5a2 (diff)
Merge "NSB: Fix IndexError in pin_vcpu_for_perf"
-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