Translate the group speed limit to a proper real rate.paramgroup to usereturnrate 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;
int limit = group.getRateLimitBytesPerSecond(); if( limit == 0 ) { //unlimited limit = NetworkManager.UNLIMITED_RATE; } else if( limit < 0 ) { //disabled limit = 0; } return limit;