Changed progressbar update timer

This commit is contained in:
BlyDoesCoding 2023-03-25 00:12:23 +01:00
parent be100242e3
commit 08c727e62b
2 changed files with 12 additions and 5 deletions

15
.idea/workspace.xml generated
View file

@ -9,10 +9,9 @@
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="9b57ac51-c870-474b-9dfd-64a5fc490635" name="Changes" comment="replaced Algorythm and made it way faster">
<list default="true" id="9b57ac51-c870-474b-9dfd-64a5fc490635" name="Changes" comment="Removed whitespaces and changed comments">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Main.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Main.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/ThreadedCompare.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ThreadedCompare.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -283,7 +282,14 @@
<option name="project" value="LOCAL" />
<updated>1679696235787</updated>
</task>
<option name="localTasksCounter" value="28" />
<task id="LOCAL-00028" summary="Removed whitespaces and changed comments">
<created>1679698431426</created>
<option name="number" value="00028" />
<option name="presentableId" value="LOCAL-00028" />
<option name="project" value="LOCAL" />
<updated>1679698431426</updated>
</task>
<option name="localTasksCounter" value="29" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
@ -329,7 +335,8 @@
<MESSAGE value="AUR Package instructions" />
<MESSAGE value="Fix MD" />
<MESSAGE value="replaced Algorythm and made it way faster" />
<option name="LAST_COMMIT_MESSAGE" value="replaced Algorythm and made it way faster" />
<MESSAGE value="Removed whitespaces and changed comments" />
<option name="LAST_COMMIT_MESSAGE" value="Removed whitespaces and changed comments" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager>

View file

@ -124,7 +124,7 @@ public class Main {
}
//this updates if necessary the Progress bar and checks for Finished threads
while (completedThreads < availableThreads) {
TimeUnit.SECONDS.sleep(1);
TimeUnit.MILLISECONDS.sleep(250);
if (showProgress && doTheColorThingy) {
System.out.print(ConsoleColors.BLUE_BOLD + "Progress: " + ConsoleColors.GREEN_BOLD + progress + " / " + filesToBeDone + " | " + (progress * 100 / filesToBeDone) + "%" + ConsoleColors.RESET + "\r");