Stats: Enable per-tunnel bandwidth stats by default (tickets #2106, #2145)

This commit is contained in:
zzz
2018-04-03 15:25:28 +00:00
parent 4ca12d141c
commit 1a7e71c5ca
3 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2018-04-03 zzz
* Stats: Enable per-tunnel bw stats by default (tickets #2106, #2145)
2018-04-02 zzz 2018-04-02 zzz
* KeyStore: Fix ConncurrentModificationException (ticket #2196) * KeyStore: Fix ConncurrentModificationException (ticket #2196)

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */ /** deprecated */
public final static String ID = "Monotone"; public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION; public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 22; public final static long BUILD = 23;
/** for example "-test" */ /** for example "-test" */
public final static String EXTRA = "-rc"; public final static String EXTRA = "-rc";

View File

@ -102,7 +102,7 @@ public class TunnelPool {
if (ls != null) if (ls != null)
_context.clientManager().requestLeaseSet(_settings.getDestination(), ls); _context.clientManager().requestLeaseSet(_settings.getDestination(), ls);
} }
_context.statManager().createRateStat(_rateName, _context.statManager().createRequiredRateStat(_rateName,
"Tunnel Bandwidth (Bytes/sec)", "Tunnels", "Tunnel Bandwidth (Bytes/sec)", "Tunnels",
new long[] { 5*60*1000l }); new long[] { 5*60*1000l });
} }