Merge "Set default NUMA topology distances"

This commit is contained in:
Jenkins 2016-03-04 14:02:20 +00:00 committed by Gerrit Code Review
commit 2637e949a7
1 changed files with 1 additions and 1 deletions

2
agent
View File

@ -943,7 +943,7 @@ class NodeAgent
doc = Document.new `lstopo --no-caches --of xml`
topology = {:numa_nodes => [], :supported_hugepages => supported_hugepages, :distances => nil}
topology = {:numa_nodes => [], :supported_hugepages => supported_hugepages, :distances => [["1.0"]]}
doc.elements.each('/topology/object/distances/') do |dist|
topology[:distances] = dist.elements.collect{|v| v.attributes['value']}