HW08
This commit is contained in:
@@ -57,6 +57,10 @@ public class ProgressMonitor implements Runnable {
|
||||
|
||||
// TODO:
|
||||
// If all chunks are completed, print a final message and exit the loop
|
||||
if (completedChunks == chunks.size()){
|
||||
System.out.println("All cchunks have been downloadeed.Monitor stopped.");
|
||||
break;
|
||||
}
|
||||
|
||||
try {
|
||||
Thread.sleep(monitorDelayMs);
|
||||
|
||||
Reference in New Issue
Block a user