lotus 16 years ago
parent 9e58ae036d
commit c8451614f3

@ -375,25 +375,25 @@ public class yacySeed implements Cloneable {
public final void incSI(final int count) { public final void incSI(final int count) {
String v = this.dna.get(yacySeed.INDEX_OUT); String v = this.dna.get(yacySeed.INDEX_OUT);
if (v == null) { v = yacySeed.ZERO; } if (v == null) { v = yacySeed.ZERO; }
dna.put(yacySeed.INDEX_OUT, Integer.toString(Integer.parseInt(v) + count)); dna.put(yacySeed.INDEX_OUT, Long.toString(Long.parseLong(v) + (long) count));
} }
public final void incRI(final int count) { public final void incRI(final int count) {
String v = this.dna.get(yacySeed.INDEX_IN); String v = this.dna.get(yacySeed.INDEX_IN);
if (v == null) { v = yacySeed.ZERO; } if (v == null) { v = yacySeed.ZERO; }
dna.put(yacySeed.INDEX_IN, Integer.toString(Integer.parseInt(v) + count)); dna.put(yacySeed.INDEX_IN, Long.toString(Long.parseLong(v) + (long) count));
} }
public final void incSU(final int count) { public final void incSU(final int count) {
String v = this.dna.get(yacySeed.URL_OUT); String v = this.dna.get(yacySeed.URL_OUT);
if (v == null) { v = yacySeed.ZERO; } if (v == null) { v = yacySeed.ZERO; }
dna.put(yacySeed.URL_OUT, Integer.toString(Integer.parseInt(v) + count)); dna.put(yacySeed.URL_OUT, Long.toString(Long.parseLong(v) + (long) count));
} }
public final void incRU(final int count) { public final void incRU(final int count) {
String v = this.dna.get(yacySeed.URL_IN); String v = this.dna.get(yacySeed.URL_IN);
if (v == null) { v = yacySeed.ZERO; } if (v == null) { v = yacySeed.ZERO; }
dna.put(yacySeed.URL_IN, Integer.toString(Integer.parseInt(v) + count)); dna.put(yacySeed.URL_IN, Long.toString(Long.parseLong(v) + (long) count));
} }
/** /**

Loading…
Cancel
Save