Changeset b63d44b


Ignore:
Timestamp:
Jan 4, 2017 1:30:35 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
307a03f0
Parents:
57be0df
Message:

Sybil: Start analysis 3 days before

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/SybilRenderer.java

    r57be0df rb63d44b  
    939939        RouterKeyGenerator rkgen = ctx.routerKeyGenerator();
    940940        long now = ctx.clock().now();
    941         final int days = 7;
     941        final int start = -3;
     942        now += start * 24*60*60*1000L;
     943        final int days = 10;
    942944        Hash from = ctx.routerHash();
    943945        if (victim != null) {
     
    949951        prev = null;
    950952        final int limit = Math.min(10, sybils.size());
    951         for (int i = 0; i < days; i++) {
     953        for (int i = start; i <= days; i++) {
    952954            out.write("<h3>Distance for " + new Date(now) +
    953955                      "</h3><table><tr><th>Hash<th>Distance<th>Distance from previous</tr>\n");
Note: See TracChangeset for help on using the changeset viewer.