- cleaned up unused variable
- renamed parameter
This commit is contained in:
@@ -155,7 +155,6 @@ public class LoadingBar extends AbstractProgressBar {
|
||||
nextArg = args[1];
|
||||
var section = DaySection.byParam(nextArg);
|
||||
verifyDaySection(section, nextArg);
|
||||
LoadingBar lb;
|
||||
return section == DaySection.MITTAG ? getLoadingBarMittagspause(args, startTime) : getLoadingBarZapfenstreich(args, startTime);
|
||||
}
|
||||
|
||||
@@ -393,11 +392,11 @@ public class LoadingBar extends AbstractProgressBar {
|
||||
}
|
||||
|
||||
|
||||
private void realInitZapfenstreich(long effectiveLunchDuration, LocalTime endTime) {
|
||||
private void realInitZapfenstreich(long effectiveLunchDuration, LocalTime effectiveEndTime) {
|
||||
if (effectiveLunchDuration > 0) {
|
||||
var totalWorkTime = LocalTime.MIDNIGHT.plusMinutes(getStartTime().until(endTime, ChronoUnit.MINUTES) - effectiveLunchDuration);
|
||||
var totalWorkTime = LocalTime.MIDNIGHT.plusMinutes(getStartTime().until(effectiveEndTime, ChronoUnit.MINUTES) - effectiveLunchDuration);
|
||||
print("Arbeitszeit: " + FormatTools.TIME_FORMATTER.format(totalWorkTime) + "; ");
|
||||
}
|
||||
setEndTime(endTime);
|
||||
setEndTime(effectiveEndTime);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user