Skip to content

Commit

Permalink
Removed countdown bar for now
Browse files Browse the repository at this point in the history
  • Loading branch information
frossm committed Jul 3, 2023
1 parent 2747261 commit 14aff3d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/fross/quoter/CountDownBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public class CountDownBar extends Thread {
private int countDown = 30;

// Constructor: Sets the time for the countdown in seconds
// Constructor: Sets the time for the count down in seconds
public CountDownBar(int sec) {
this.countDown = sec;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/fross/quoter/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public static void main(String[] args) {
final FetchLatestTask asyncTimer = new FetchLatestTask(exporter);

// Schedule the timer. Set it for a bit more than what is selected so it happens after the count down bar
new Timer().schedule(asyncTimer, cli.clAutoRefresh * 1000 + 350, cli.clAutoRefresh * 1000 + 350);
new Timer().schedule(asyncTimer, cli.clAutoRefresh * 1000, cli.clAutoRefresh * 1000);
}

} // END OF MAIN
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/org/fross/quoter/QuoteConsoleOutput.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,6 @@ public void invokeSymbolOutput(FileExporter exporter) {
// If auto refresh is on, display a message and a count down timer
if (cli.clAutoRefresh > 0) {
Output.printColorln(Ansi.Color.RED, String.format("\nAuto-Refresh enabled for %d seconds. Press 'CTRL + C' to exit\n", cli.clAutoRefresh));

CountDownBar cdb = new CountDownBar(cli.clAutoRefresh);
cdb.start();
}

}
Expand Down

0 comments on commit 14aff3d

Please sign in to comment.