public synchronized long recoveredBytes(){
  long recovered=0;
  for (  File file : fileDetails.values()) {
    recovered+=file.recovered();
  }
  return recovered;
}

public synchronized long recoveredBytes ( ) { long recovered = 0 ; for ( File file : fileDetails . values ( ) ) { recovered += file . recovered ( ) ; } return recovered ; }
total number of bytes recovered so far , including both existing and reused
