expose stat for throttling (# tunnels we're currently participating in)
This commit is contained in:
@ -60,4 +60,7 @@ public interface TunnelManagerFacade extends Service {
|
||||
*
|
||||
*/
|
||||
boolean isInUse(Hash peer);
|
||||
|
||||
/** how many tunnels are we participating in? */
|
||||
public int getParticipatingCount();
|
||||
}
|
||||
|
@ -202,6 +202,10 @@ public class PoolingTunnelManagerFacade implements TunnelManagerFacade {
|
||||
return false;
|
||||
}
|
||||
|
||||
public int getParticipatingCount() {
|
||||
return _pool.getParticipatingTunnelCount();
|
||||
}
|
||||
|
||||
/**
|
||||
* Aint she pretty?
|
||||
*
|
||||
|
Reference in New Issue
Block a user