Changeset 0af1f67


Ignore:
Timestamp:
Mar 17, 2015 9:38:59 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d7a88db8
Parents:
819b07a5
Message:

Router: Revert deprecation;
addCapabilities() tweaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/Router.java

    r819b07a5 r0af1f67  
    501501   
    502502    /**
    503      * @deprecated unused
     503     *  Used only by routerconsole.. to be deprecated?
    504504     */
    505505    public long getWhenStarted() { return _started; }
     
    857857    /**
    858858     *  For building our RI. Not for external use.
     859     *  This does not publish the ri.
     860     *  This does not use anything in the ri (i.e. it can be freshly constructed)
     861     *
     862     *  TODO just return a string instead of passing in the RI? See PublishLocalRouterInfoJob.
     863     *
     864     *  @param an unpublished ri we are generating.
    859865     */
    860866    public void addCapabilities(RouterInfo ri) {
     
    878884        } else if (bwLim <= 256) {
    879885            ri.addCapability(CAPABILITY_BW256);
    880         } else {
     886        } else if (bwLim <= 2000) {    // TODO adjust threshold
    881887            // 512 supported as of 0.9.18;
    882888            // Add 256 as well for compatibility
    883889            // TODO uncomment
    884890            //ri.addCapability(CAPABILITY_BW512);
     891            ri.addCapability(CAPABILITY_BW256);
     892        } else {
     893            // Unlimited supported as of 0.9.18;
     894            // Add 256 as well for compatibility
     895            // TODO uncomment
     896            //ri.addCapability(CAPABILITY_BW_UNLIMITED);
    885897            ri.addCapability(CAPABILITY_BW256);
    886898        }
Note: See TracChangeset for help on using the changeset viewer.