New improvements

This commit is contained in:
Robert Vokac 2024-01-27 14:51:58 +00:00
parent 09dbaec4cc
commit 4f71c66e64
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055
5 changed files with 7 additions and 11 deletions

0
highlight.txt Normal file
View File

View File

@ -1 +1 @@
0:09
0:00

View File

@ -38,12 +38,8 @@ public class Main {
lastOvertime == null ? "0:00" : lastOvertime
);
if(!starttimeTxt.exists()) {
Utils.writeTextToFile(starttimeTxt, startTime);
}
if(!overtimeTxt.exists()) {
Utils.writeTextToFile(overtimeTxt, overTime);
}
Utils.writeTextToFile(starttimeTxt, startTime);
Utils.writeTextToFile(overtimeTxt, overTime);
try {
TimeCalcWindow timeCalc =
new TimeCalcWindow(startTime, overTime);

View File

@ -182,8 +182,8 @@ public class TimeCalcWindow {
double totalSecondsRemainsDouble = ((double)totalMillisecondsRemains)/1000;
String msg = "Done=" + formatter5.format(done * 100) + "% Remains="
+ String.format("%02d", hourRemains) + ":" + String
.format("%02d", minuteRemains) + ":" + String.format("%02d", secondsRemains) + " (" + formatter3
.format(totalSecondsRemainsDouble)
.format("%02d", minuteRemains) + /*":" + String.format("%02d", secondsRemains)+ */ " (" + formatter3
.format(totalSecondsRemainsDouble - 60)
+ " s" + ")" + " End=" + String
.format("%02d", endHour) + ":" + String
.format("%02d", endMinute);
@ -304,7 +304,7 @@ public class TimeCalcWindow {
int spacesTodo = spacesTotal - (spacesDone < 0 ? 0 : spacesDone);
sb.append("||" + createSpaces(58 - 2) + (spacesTodo == 0 ? " \n": "||======||\n"));
sb.append("||").append(createSpaces(spacesTotal + 4)).append("| |").append("\n");
sb.append("||").append(createSpaces(spacesTotal + 4)).append(spacesTodo == 0 ? "" : "| |").append("\n");
NumberFormat formatter3 = new DecimalFormat("#0.00000");
sb.append(

View File

@ -1 +1 @@
6:39
0:48