summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-03-04 14:02:20 +0000
committerGerrit Code Review <review@openstack.org>2016-03-04 14:02:20 +0000
commit2637e949a72b7c63779dd64b9140eeced7e8dabc (patch)
treeb3f19cfcaa5f0a6f1916b2f581aa1f61df21c27a
parente2b35cd9edfca57d839618861554ce38cab8dd93 (diff)
parent122f851295e6fb5f8e04b997de7c262527392ceb (diff)
Merge "Set default NUMA topology distances"
-rwxr-xr-xagent2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent b/agent
index 4deacb5..2cf781c 100755
--- a/agent
+++ b/agent
@@ -943,7 +943,7 @@ class NodeAgent
943 943
944 doc = Document.new `lstopo --no-caches --of xml` 944 doc = Document.new `lstopo --no-caches --of xml`
945 945
946 topology = {:numa_nodes => [], :supported_hugepages => supported_hugepages, :distances => nil} 946 topology = {:numa_nodes => [], :supported_hugepages => supported_hugepages, :distances => [["1.0"]]}
947 947
948 doc.elements.each('/topology/object/distances/') do |dist| 948 doc.elements.each('/topology/object/distances/') do |dist|
949 topology[:distances] = dist.elements.collect{|v| v.attributes['value']} 949 topology[:distances] = dist.elements.collect{|v| v.attributes['value']}