mirror of
https://github.com/torproject/metrics-lib.git
synced 2024-11-26 18:50:28 +00:00
Support OnionPerf results files up to version 2.x.
This commit is contained in:
parent
ba6c63a707
commit
1e9fa02107
@ -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
|
||||
+ ".");
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user