mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
parent
eb1f37905d
commit
ea08c85424
@ -235,7 +235,9 @@ void TimePeriod::Merge(const TimePeriod::Ptr& timeperiod, bool include)
|
|||||||
|
|
||||||
void TimePeriod::UpdateRegion(double begin, double end, bool clearExisting)
|
void TimePeriod::UpdateRegion(double begin, double end, bool clearExisting)
|
||||||
{
|
{
|
||||||
if (!clearExisting) {
|
if (clearExisting) {
|
||||||
|
SetSegments(new Array());
|
||||||
|
} else {
|
||||||
if (begin < GetValidEnd())
|
if (begin < GetValidEnd())
|
||||||
begin = GetValidEnd();
|
begin = GetValidEnd();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user