bin/cobench in cobench-0.0.26 vs bin/cobench in cobench-0.0.27
- old
+ new
@@ -193,18 +193,18 @@
xml.totals do
data.map { |_, ms| ms.keys }.flatten.uniq.each do |t|
next if t == 'Score'
next if averages.key?(t)
xml.w(id: t) do
- xml.text(data.values.map { |ms| ms[t][:total] }.inject(&:+))
+ xml.text(data.values.map { |ms| actual(ms[t]) }.inject(&:+))
end
end
end
xml.averages do
data.map { |_, ms| ms.keys }.flatten.uniq.each do |t|
next if t == 'Score'
xml.w(id: t) do
- vals = data.values.map { |ms| ms[t][:total] }.select { |v| v > 0 }
+ vals = data.values.map { |ms| actual(ms[t]) }.select { |v| v > 0 }
xml.text(div(vals.inject(&:+), vals.count))
end
end
end
xml.coders do