reset sent/received counters on index delete

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5991 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
lotus 16 years ago
parent 99bf0b8e41
commit d813fd26ed

@ -117,6 +117,7 @@ public final class Segment {
} catch (final IOException e) { } catch (final IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
plasmaSwitchboard.getSwitchboard().peers.mySeed().resetCounters();
} }
public File getLocation() { public File getLocation() {

@ -396,6 +396,13 @@ public class yacySeed implements Cloneable {
if (v == null) { v = yacySeed.ZERO; } if (v == null) { v = yacySeed.ZERO; }
dna.put(yacySeed.URL_IN, Long.toString(Long.parseLong(v) + (long) count)); dna.put(yacySeed.URL_IN, Long.toString(Long.parseLong(v) + (long) count));
} }
public final void resetCounters(){
dna.put(yacySeed.INDEX_OUT, yacySeed.ZERO);
dna.put(yacySeed.INDEX_IN, yacySeed.ZERO);
dna.put(yacySeed.URL_OUT, yacySeed.ZERO);
dna.put(yacySeed.URL_IN, yacySeed.ZERO);
}
/** /**
* <code>12 * 6 bit = 72 bit = 24</code> characters octal-hash * <code>12 * 6 bit = 72 bit = 24</code> characters octal-hash

Loading…
Cancel
Save