Exemplo n.º 1
0
 public boolean overUpBWLimit() {
   if (_peerCoordinatorSet == null) return false;
   long total = 0;
   for (PeerCoordinator c : _peerCoordinatorSet) {
     if (!c.halted()) total += c.getCurrentUploadRate();
   }
   long limit = 1024l * _util.getMaxUpBW();
   if (_log.shouldLog(Log.INFO)) _log.info("Total up bw: " + total + " Limit: " + limit);
   return total > limit;
 }
Exemplo n.º 2
0
 public boolean overUpBWLimit(long total) {
   long limit = 1024l * _util.getMaxUpBW();
   return total > limit;
 }