Commit 6f561bef authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Handle Torperf lines with unrecognized keys correctly.

Previously, we would have added as many copies of a Torperf line as it
contains keys we don't recognize, which is not really usable.
parent 0d6205af
......@@ -5,6 +5,10 @@
and votes.
- Also accept \r\n as newline in Torperf results files.
* Minor changes
- Include a Torperf results line with more than one unrecognized
key only once in the unrecognized lines.
# Changes in version 1.1.0 - 2015-12-28
......
......@@ -156,7 +156,9 @@ public class TorperfResultImpl extends DescriptorImpl
if (this.unrecognizedLines == null) {
this.unrecognizedLines = new ArrayList<>();
}
this.unrecognizedLines.add(line);
if (!this.unrecognizedLines.contains(line)) {
this.unrecognizedLines.add(line);
}
}
}
}
......
Supports Markdown
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