Mentions légales du service

Skip to content
Snippets Groups Projects
Commit dc2716ac authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

[dev] wiki/hardware: only one interface per node per type was counted

parent 95295057
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ class G5KHardwareGenerator < WikiGenerator
sort: ((v['rate'])/10**6).to_s.rjust(6, '0') + ' Gbps, ' + v['interface']
}
]
}.uniq
}
net_interconnects = interfaces.inject(Hash.new(0)){ |h, v| h[v] += 1; h }
net_interconnects.sort_by { |k, v| k.first[:sort] }.each { |k, v|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment