Esempio n. 1
0
 @Override
 public float progress() {
   double d = 0.1;
   for (Job job : jobs) d += job.progress();
   return Math.min(1f, (float) (d / jobs.length));
 }
Esempio n. 2
0
 @Override
 public float progress() {
   if (_status == Status.Done) return 1.0f;
   return Math.min(0.99f, (float) ((double) _count / (double) _nchunks));
 }