Removing not needed lines
This commit is contained in:
parent
feee5c5158
commit
f06be2edab
3 changed files with 11 additions and 73 deletions
10
.idea/workspace.xml
generated
10
.idea/workspace.xml
generated
|
@ -6,6 +6,7 @@
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="9b57ac51-c870-474b-9dfd-64a5fc490635" name="Changes" comment="Just a Test">
|
<list default="true" id="9b57ac51-c870-474b-9dfd-64a5fc490635" name="Changes" comment="Just a Test">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/ConsoleColors.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ConsoleColors.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/Main.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Main.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/Main.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Main.java" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
@ -65,7 +66,14 @@
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1672703686539</updated>
|
<updated>1672703686539</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="4" />
|
<task id="LOCAL-00004" summary="Just a Test">
|
||||||
|
<created>1672703881482</created>
|
||||||
|
<option name="number" value="00004" />
|
||||||
|
<option name="presentableId" value="LOCAL-00004" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1672703881482</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="5" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="Vcs.Log.Tabs.Properties">
|
<component name="Vcs.Log.Tabs.Properties">
|
||||||
|
|
|
@ -4,74 +4,11 @@ public class ConsoleColors {
|
||||||
// Reset
|
// Reset
|
||||||
public static final String RESET = "\033[0m"; // Text Reset
|
public static final String RESET = "\033[0m"; // Text Reset
|
||||||
|
|
||||||
// Regular Colors
|
|
||||||
public static final String BLACK = "\033[0;30m"; // BLACK
|
|
||||||
public static final String RED = "\033[0;31m"; // RED
|
|
||||||
public static final String GREEN = "\033[0;32m"; // GREEN
|
|
||||||
public static final String YELLOW = "\033[0;33m"; // YELLOW
|
|
||||||
public static final String BLUE = "\033[0;34m"; // BLUE
|
|
||||||
public static final String PURPLE = "\033[0;35m"; // PURPLE
|
|
||||||
public static final String CYAN = "\033[0;36m"; // CYAN
|
|
||||||
public static final String WHITE = "\033[0;37m"; // WHITE
|
|
||||||
|
|
||||||
// Bold
|
|
||||||
public static final String BLACK_BOLD = "\033[1;30m"; // BLACK
|
|
||||||
public static final String RED_BOLD = "\033[1;31m"; // RED
|
|
||||||
public static final String GREEN_BOLD = "\033[1;32m"; // GREEN
|
public static final String GREEN_BOLD = "\033[1;32m"; // GREEN
|
||||||
public static final String YELLOW_BOLD = "\033[1;33m"; // YELLOW
|
|
||||||
public static final String BLUE_BOLD = "\033[1;34m"; // BLUE
|
public static final String BLUE_BOLD = "\033[1;34m"; // BLUE
|
||||||
public static final String PURPLE_BOLD = "\033[1;35m"; // PURPLE
|
|
||||||
public static final String CYAN_BOLD = "\033[1;36m"; // CYAN
|
public static final String CYAN_BOLD = "\033[1;36m"; // CYAN
|
||||||
public static final String WHITE_BOLD = "\033[1;37m"; // WHITE
|
|
||||||
|
|
||||||
// Underline
|
|
||||||
public static final String BLACK_UNDERLINED = "\033[4;30m"; // BLACK
|
|
||||||
public static final String RED_UNDERLINED = "\033[4;31m"; // RED
|
|
||||||
public static final String GREEN_UNDERLINED = "\033[4;32m"; // GREEN
|
|
||||||
public static final String YELLOW_UNDERLINED = "\033[4;33m"; // YELLOW
|
|
||||||
public static final String BLUE_UNDERLINED = "\033[4;34m"; // BLUE
|
|
||||||
public static final String PURPLE_UNDERLINED = "\033[4;35m"; // PURPLE
|
|
||||||
public static final String CYAN_UNDERLINED = "\033[4;36m"; // CYAN
|
|
||||||
public static final String WHITE_UNDERLINED = "\033[4;37m"; // WHITE
|
|
||||||
|
|
||||||
// Background
|
|
||||||
public static final String BLACK_BACKGROUND = "\033[40m"; // BLACK
|
|
||||||
public static final String RED_BACKGROUND = "\033[41m"; // RED
|
|
||||||
public static final String GREEN_BACKGROUND = "\033[42m"; // GREEN
|
|
||||||
public static final String YELLOW_BACKGROUND = "\033[43m"; // YELLOW
|
|
||||||
public static final String BLUE_BACKGROUND = "\033[44m"; // BLUE
|
|
||||||
public static final String PURPLE_BACKGROUND = "\033[45m"; // PURPLE
|
|
||||||
public static final String CYAN_BACKGROUND = "\033[46m"; // CYAN
|
|
||||||
public static final String WHITE_BACKGROUND = "\033[47m"; // WHITE
|
|
||||||
|
|
||||||
// High Intensity
|
|
||||||
public static final String BLACK_BRIGHT = "\033[0;90m"; // BLACK
|
|
||||||
public static final String RED_BRIGHT = "\033[0;91m"; // RED
|
|
||||||
public static final String GREEN_BRIGHT = "\033[0;92m"; // GREEN
|
|
||||||
public static final String YELLOW_BRIGHT = "\033[0;93m"; // YELLOW
|
|
||||||
public static final String BLUE_BRIGHT = "\033[0;94m"; // BLUE
|
|
||||||
public static final String PURPLE_BRIGHT = "\033[0;95m"; // PURPLE
|
|
||||||
public static final String CYAN_BRIGHT = "\033[0;96m"; // CYAN
|
|
||||||
public static final String WHITE_BRIGHT = "\033[0;97m"; // WHITE
|
|
||||||
|
|
||||||
// Bold High Intensity
|
|
||||||
public static final String BLACK_BOLD_BRIGHT = "\033[1;90m"; // BLACK
|
|
||||||
public static final String RED_BOLD_BRIGHT = "\033[1;91m"; // RED
|
|
||||||
public static final String GREEN_BOLD_BRIGHT = "\033[1;92m"; // GREEN
|
|
||||||
public static final String YELLOW_BOLD_BRIGHT = "\033[1;93m";// YELLOW
|
|
||||||
public static final String BLUE_BOLD_BRIGHT = "\033[1;94m"; // BLUE
|
|
||||||
public static final String PURPLE_BOLD_BRIGHT = "\033[1;95m";// PURPLE
|
|
||||||
public static final String CYAN_BOLD_BRIGHT = "\033[1;96m"; // CYAN
|
|
||||||
public static final String WHITE_BOLD_BRIGHT = "\033[1;97m"; // WHITE
|
|
||||||
|
|
||||||
// High Intensity backgrounds
|
|
||||||
public static final String BLACK_BACKGROUND_BRIGHT = "\033[0;100m";// BLACK
|
|
||||||
public static final String RED_BACKGROUND_BRIGHT = "\033[0;101m";// RED
|
|
||||||
public static final String GREEN_BACKGROUND_BRIGHT = "\033[0;102m";// GREEN
|
|
||||||
public static final String YELLOW_BACKGROUND_BRIGHT = "\033[0;103m";// YELLOW
|
|
||||||
public static final String BLUE_BACKGROUND_BRIGHT = "\033[0;104m";// BLUE
|
|
||||||
public static final String PURPLE_BACKGROUND_BRIGHT = "\033[0;105m"; // PURPLE
|
|
||||||
public static final String CYAN_BACKGROUND_BRIGHT = "\033[0;106m"; // CYAN
|
|
||||||
public static final String WHITE_BACKGROUND_BRIGHT = "\033[0;107m"; // WHITE
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,10 +13,8 @@ public class Main {
|
||||||
|
|
||||||
public static int completedThreads = 0;
|
public static int completedThreads = 0;
|
||||||
public static int progress = 0;
|
public static int progress = 0;
|
||||||
|
|
||||||
public static HashMap<String, List<Path>> fileMap = new HashMap<>();
|
public static HashMap<String, List<Path>> fileMap = new HashMap<>();
|
||||||
public static void main(String[] args) throws InterruptedException {
|
public static void main(String[] args) throws InterruptedException {
|
||||||
|
|
||||||
boolean doTheColorThingy = false;
|
boolean doTheColorThingy = false;
|
||||||
boolean showProgress = false;
|
boolean showProgress = false;
|
||||||
|
|
||||||
|
@ -42,8 +40,6 @@ public class Main {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*System.out.println("Folders: " + paths.size());
|
/*System.out.println("Folders: " + paths.size());
|
||||||
System.out.println("Color: " + doTheColorThingy);
|
System.out.println("Color: " + doTheColorThingy);
|
||||||
System.out.println("Progressbar: " + showProgress); */
|
System.out.println("Progressbar: " + showProgress); */
|
||||||
|
@ -60,7 +56,6 @@ public class Main {
|
||||||
allFiles.addAll(pathList);
|
allFiles.addAll(pathList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// calculations for multithreading
|
// calculations for multithreading
|
||||||
|
|
||||||
//The number of Cores or better said Threads that can be used
|
//The number of Cores or better said Threads that can be used
|
||||||
|
@ -77,13 +72,11 @@ public class Main {
|
||||||
|
|
||||||
List<Path> sectionedList = new ArrayList<>();
|
List<Path> sectionedList = new ArrayList<>();
|
||||||
|
|
||||||
|
|
||||||
//Here the different Threads are being started
|
//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
|
//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) {
|
if (i == availableThreads) {
|
||||||
for (int x = (sections * i) - (sections); x < filesToBeDone; x++) {
|
for (int x = (sections * i) - (sections); x < filesToBeDone; x++) {
|
||||||
sectionedList.add(allFiles.get(x));
|
sectionedList.add(allFiles.get(x));
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (int x = (sections * i) - (sections); x < (sections * i); x++) {
|
for (int x = (sections * i) - (sections); x < (sections * i); x++) {
|
||||||
|
|
Reference in a new issue