Fixed wrong timeframe check. Set proper 24h default.
Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com>
This commit is contained in:
@@ -31,7 +31,7 @@ public class ControllerPollProperties {
|
|||||||
* Maximum polling time that can be configured by a tenant in HH:MM:SS
|
* Maximum polling time that can be configured by a tenant in HH:MM:SS
|
||||||
* notation.
|
* notation.
|
||||||
*/
|
*/
|
||||||
private String maxPollingTime = "23:59:00";
|
private String maxPollingTime = "23:59:59";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Minimum polling time that can be configured by a tenant in HH:MM:SS
|
* Minimum polling time that can be configured by a tenant in HH:MM:SS
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public final class DurationHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isWithinRange(final Duration duration) {
|
public boolean isWithinRange(final Duration duration) {
|
||||||
return duration.compareTo(min) > 0 && duration.compareTo(max) < 0;
|
return duration.compareTo(min) >= 0 && duration.compareTo(max) <= 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user