Commit 1e9fa021 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Support OnionPerf results files up to version 2.x.

parent ba6c63a7
......@@ -109,9 +109,9 @@ public class OnionPerfAnalysisConverter {
throw new DescriptorParseException("Parsed OnionPerf analysis file does "
+ "not contain version information.");
} else if ((parsedOnionPerfAnalysis.version instanceof Double
&& (double) parsedOnionPerfAnalysis.version > 1.999)
&& (double) parsedOnionPerfAnalysis.version > 2.999)
|| (parsedOnionPerfAnalysis.version instanceof String
&& !((String) parsedOnionPerfAnalysis.version).startsWith("1."))) {
&& ((String) parsedOnionPerfAnalysis.version).compareTo("3.") >= 0)) {
throw new DescriptorParseException("Parsed OnionPerf analysis file "
+ "contains unsupported version " + parsedOnionPerfAnalysis.version
+ ".");
......
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