2006-03-05 Complication

* Reduce exposed statistical information,
      to make build and uptime tracking more expensive
This commit is contained in:
complication
2006-03-05 07:44:59 +00:00
committed by zzz
parent 717d1b97b2
commit 883150f943
3 changed files with 17 additions and 6 deletions

View File

@ -1,4 +1,8 @@
$Id: history.txt,v 1.425 2006/03/03 22:04:06 complication Exp $
$Id: history.txt,v 1.426 2006/03/04 18:50:01 complication Exp $
2006-03-05 Complication
* Reduce exposed statistical information,
to make build and uptime tracking more expensive
2006-03-04 Complication
* Fix the announce URL of orion's tracker in Snark sources

View File

@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
*
*/
public class RouterVersion {
public final static String ID = "$Revision: 1.366 $ $Date: 2006/03/03 22:04:09 $";
public final static String ID = "$Revision: 1.367 $ $Date: 2006/03/04 18:50:06 $";
public final static String VERSION = "0.6.1.12";
public final static long BUILD = 4;
public final static long BUILD = 5;
public static void main(String args[]) {
System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
System.out.println("Router ID: " + RouterVersion.ID);

View File

@ -95,9 +95,11 @@ public class StatisticsManager implements Service {
public Properties publishStatistics() {
Properties stats = new Properties();
stats.setProperty("router.version", RouterVersion.VERSION);
stats.setProperty("router.id", RouterVersion.ID);
stats.setProperty("coreVersion", CoreVersion.VERSION);
stats.setProperty("core.id", CoreVersion.ID);
// No longer expose, to make build tracking more expensive
// stats.setProperty("router.id", RouterVersion.ID);
// stats.setProperty("core.id", CoreVersion.ID);
if (_includePeerRankings) {
if (false)
@ -147,7 +149,12 @@ public class StatisticsManager implements Service {
includeRate("udp.congestionOccurred", stats, new long[] { 10*60*1000 });
//includeRate("stream.con.sendDuplicateSize", stats, new long[] { 60*60*1000 });
//includeRate("stream.con.receiveDuplicateSize", stats, new long[] { 60*60*1000 });
stats.setProperty("stat_uptime", DataHelper.formatDuration(_context.router().getUptime()));
// Round smaller uptimes to 1 hour, to frustrate uptime tracking
long publishedUptime = _context.router().getUptime();
if (publishedUptime < 60*60*1000) publishedUptime = 60*60*1000;
stats.setProperty("stat_uptime", DataHelper.formatDuration(publishedUptime));
stats.setProperty("stat__rateKey", "avg;maxAvg;pctLifetime;[sat;satLim;maxSat;maxSatLim;][num;lifetimeFreq;maxFreq]");
includeRate("tunnel.buildRequestTime", stats, new long[] { 60*1000, 10*60*1000 });