示例#1
0
文件: Snark.java 项目: dzirtt/i2p.i2p
 public void storageChecked(Storage storage, int num, boolean checked) {
   // allocating = false;
   if (!allChecked && !checking) {
     // Use the MetaInfo from the storage since our own might not
     // yet be setup correctly.
     // MetaInfo meta = storage.getMetaInfo();
     // if (meta != null)
     //  System.out.print("Checking existing "
     //                   + meta.getPieces()
     //                   + " pieces: ");
     checking = true;
   }
   if (!checking) {
     if (_log.shouldLog(Log.INFO)) _log.info("Got " + (checked ? "" : "BAD ") + "piece: " + num);
     if (completeListener != null) completeListener.gotPiece(this);
   }
 }