Commit 6d9504e2 authored by irl's avatar irl
Browse files

Update ExtraInfoDescriptorImpl.java

parent a1112f24
......@@ -384,8 +384,8 @@ public abstract class ExtraInfoDescriptorImpl extends DescriptorImpl
private void parseOverloadRatelimits(String line,
String[] partsNoOpt) throws DescriptorParseException {
this.overloadRatelimitsVersion = Long.parseLong(partsNoOpt[1]);
if (this.overloadRatelimitsVersion != 1.0) {
this.overloadRatelimitsVersion = Integer.parseInt(partsNoOpt[1]);
if (this.overloadRatelimitsVersion != 1) {
throw new DescriptorParseException("Unknown version number for line '"
+ line + "' in extra-info descriptor.");
}
......@@ -404,8 +404,8 @@ public abstract class ExtraInfoDescriptorImpl extends DescriptorImpl
private void parseOverloadFdExhausted(String line,
String[] partsNoOpt)
throws DescriptorParseException {
this.overloadFdExhaustedVersion = Long.parseLong(partsNoOpt[1]);
if (this.overloadFdExhaustedVersion != 1.0) {
this.overloadFdExhaustedVersion = Integer.parseInt(partsNoOpt[1]);
if (this.overloadFdExhaustedVersion != 1) {
throw new DescriptorParseException("Unknown version number for line '"
+ line + "' in extra-info descriptor.");
}
......
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