central evaluation of passed minutes
This commit is contained in:
@@ -302,7 +302,12 @@ public class LoadingBar extends AbstractProgressBar {
|
||||
|
||||
|
||||
protected boolean hasMittagspauseArrived() {
|
||||
return getStartTime().until(LocalTime.now(), ChronoUnit.MINUTES) < DEFAULT_NUMBER_WORK_MINS_BEFORE_LUNCH;
|
||||
return hasMittagspauseArrived(false);
|
||||
}
|
||||
|
||||
|
||||
protected boolean hasMittagspauseArrived(boolean debugWithPassedMinutesZero) {
|
||||
return getPassedMinutes(debugWithPassedMinutesZero) < DEFAULT_NUMBER_WORK_MINS_BEFORE_LUNCH;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user