FileDocCategorySizeDatePackage
NetworkManagerUtilities.javaAPI DocAzureus 3.0.3.41632Thu Feb 09 19:42:54 GMT 2006com.aelitis.azureus.core.networkmanager.impl

NetworkManagerUtilities

public class NetworkManagerUtilities extends Object

Fields Summary
Constructors Summary
Methods Summary
public static intgetGroupRateLimit(com.aelitis.azureus.core.networkmanager.LimitedRateGroup group)
Translate the group speed limit to a proper real rate.

param
group to use
return
rate real limit in bytes per second

    int limit = group.getRateLimitBytesPerSecond();
    if( limit == 0 ) {  //unlimited
      limit = NetworkManager.UNLIMITED_RATE;
    }
    else if( limit < 0 ) {  //disabled
      limit = 0;
    }
    return limit;