cobench 0.0.26 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/index.xsl +1 -2
- data/bin/cobench +2 -2
- data/lib/cobench/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47f3f37318c2232bf63618919be537f4e62376cde764593380403037e3d9f524
|
4
|
+
data.tar.gz: 62c34a1ee6af530921f33ecb1b7c66c88526b9fca3153ab9b76c0e91277aa0ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb1947fc4eca6c72ca3ee7b74aa67d179511e6e331214946ed8b1d8091939f0d4958bb36657c0128d581b25ab9651e3140fd96ec63e8bf2866765022445a3887
|
7
|
+
data.tar.gz: 429128c6e5c1110ee0b5af6b8811e24a1984f03a435abf7ff3b0f25d7d8123ece3772afe5e39ea703a6ea94a7888ef62aa32181859b494224c7991511503e535
|
data/assets/index.xsl
CHANGED
@@ -173,8 +173,7 @@ SOFTWARE.
|
|
173
173
|
</xsl:template>
|
174
174
|
<xsl:template match="cobench/titles">
|
175
175
|
<tr>
|
176
|
-
<th/>
|
177
|
-
<th/>
|
176
|
+
<th colspan="2"/>
|
178
177
|
<xsl:for-each select="title[generate-id() = generate-id(key('titles', .)[1])]">
|
179
178
|
<xsl:sort select="."/>
|
180
179
|
<th class="sorter num">
|
data/bin/cobench
CHANGED
@@ -195,7 +195,7 @@ def build_xml(opts, loog)
|
|
195
195
|
next if t == 'Score'
|
196
196
|
next if averages.key?(t)
|
197
197
|
xml.w(id: t) do
|
198
|
-
xml.text(data.values.map { |ms| ms[t]
|
198
|
+
xml.text(data.values.map { |ms| actual(ms[t]) }.inject(&:+))
|
199
199
|
end
|
200
200
|
end
|
201
201
|
end
|
@@ -203,7 +203,7 @@ def build_xml(opts, loog)
|
|
203
203
|
data.map { |_, ms| ms.keys }.flatten.uniq.each do |t|
|
204
204
|
next if t == 'Score'
|
205
205
|
xml.w(id: t) do
|
206
|
-
vals = data.values.map { |ms| ms[t]
|
206
|
+
vals = data.values.map { |ms| actual(ms[t]) }.select { |v| v > 0 }
|
207
207
|
xml.text(div(vals.inject(&:+), vals.count))
|
208
208
|
end
|
209
209
|
end
|
data/lib/cobench/version.rb
CHANGED