return;
Rectangle rect = pieceDistCanvas.getBounds();
if (rect.height <= 0 || rect.width <= 0)
return;
PiecePicker picker = pem.getPiecePicker();
final int seeds = pem.getNbSeeds() + (pem.isSeeding() ? 1 : 0);
final int connected = pem.getNbPeers() + seeds + (pem.isSeeding() ? 0 : 1);
final int upperBound = 1 + (1 << (int) Math.ceil(Math.log(connected + 0.0) / Math.log(2.0)));
// System.out.println("conn:"+connected+" bound:"+upperBound);
final int minAvail = (int) picker.getMinAvailability();
final int maxAvail = picker.getMaxAvailability();
final int nbPieces = picker.getNumberOfPieces();
final int[] availabilties = picker.getAvailability();
final DiskManagerPiece[] dmPieces = pem.getDiskManager().getPieces();
final PEPiece[] pePieces = pem.getPieces();
final int[] globalPiecesPerAvailability = new int[upperBound];
final int[] datasourcePiecesPerAvailability = new int[upperBound];