Commit 36ca2c38 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Converted to correct keys pairs

parent 8612c05f
......@@ -203,11 +203,8 @@ class FlagstatCollector {
def toSummaryMap = {
val sortedKeys = names.keys.toArray.sorted
Map(
"keys" -> sortedKeys.map(names(_)),
"total" -> totalCounts,
"cross_counts" -> crossCounts
)
sortedKeys.map(x => names(x) -> totalCounts(x)).toMap ++
Map("cross_counts" -> crossCounts)
}
def +=(other: FlagstatCollector): FlagstatCollector = {
......
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