Removing not needed lines

This commit is contained in:
bly 2023-01-03 01:09:12 +01:00
parent feee5c5158
commit f06be2edab
3 changed files with 11 additions and 73 deletions

View file

@ -13,10 +13,8 @@ public class Main {
public static int completedThreads = 0;
public static int progress = 0;
public static HashMap<String, List<Path>> fileMap = new HashMap<>();
public static void main(String[] args) throws InterruptedException {
boolean doTheColorThingy = false;
boolean showProgress = false;
@ -42,8 +40,6 @@ public class Main {
return;
}
/*System.out.println("Folders: " + paths.size());
System.out.println("Color: " + doTheColorThingy);
System.out.println("Progressbar: " + showProgress); */
@ -60,7 +56,6 @@ public class Main {
allFiles.addAll(pathList);
}
// calculations for multithreading
//The number of Cores or better said Threads that can be used
@ -77,13 +72,11 @@ public class Main {
List<Path> sectionedList = new ArrayList<>();
//Here the different Threads are being started
//Usually the separation gives the first threads the same number of files to be working on and the last one is given all the files that could not be separetated
if (i == availableThreads) {
for (int x = (sections * i) - (sections); x < filesToBeDone; x++) {
sectionedList.add(allFiles.get(x));
}
} else {
for (int x = (sections * i) - (sections); x < (sections * i); x++) {