Support OnionPerf results files up to version 2.x.

This commit is contained in:
Karsten Loesing 2020-05-15 12:26:28 +02:00
parent ba6c63a707
commit 1e9fa02107
2 changed files with 2 additions and 2 deletions

View File

@ -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
+ ".");