2006-02-16 jrandom

* Add a new toggle to the web config to enable/disable the load testing
This commit is contained in:
jrandom
2006-02-16 10:33:29 +00:00
committed by zzz
parent 2e9e0c64d4
commit 9e00dbaafd
6 changed files with 47 additions and 3 deletions

View File

@ -4,6 +4,7 @@ import net.i2p.time.Timestamper;
import net.i2p.router.RouterContext;
import net.i2p.router.CommSystemFacade;
import net.i2p.data.RouterAddress;
import net.i2p.router.LoadTestManager;
import net.i2p.router.transport.udp.UDPAddress;
import net.i2p.router.transport.udp.UDPTransport;
import net.i2p.router.Router;
@ -195,6 +196,13 @@ public class ConfigNetHelper {
return buf.toString();
}
public String getEnableLoadTesting() {
if (LoadTestManager.isEnabled(_context))
return " checked ";
else
return "";
}
public String getSharePercentageBox() {
String pctStr = _context.getProperty(PROP_SHARE_PERCENTAGE);
int pct = DEFAULT_SHARE_PERCENTAGE;