Commit dc2716ac authored by Lucas Nussbaum's avatar Lucas Nussbaum

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

parent 95295057
......@@ -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|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment