mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
DB IDO: Fix actual_end_time update for non-triggered flexible downtimes
refs #5033
This commit is contained in:
parent
bc486dcef8
commit
0dfe571669
@ -601,8 +601,12 @@ void DbEvents::RemoveDowntimeInternal(std::vector<DbQuery>& queries, const Downt
|
|||||||
|
|
||||||
Dictionary::Ptr fields3 = new Dictionary();
|
Dictionary::Ptr fields3 = new Dictionary();
|
||||||
fields3->Set("was_cancelled", downtime->GetWasCancelled() ? 1 : 0);
|
fields3->Set("was_cancelled", downtime->GetWasCancelled() ? 1 : 0);
|
||||||
fields3->Set("actual_end_time", DbValue::FromTimestamp(time_bag.first));
|
|
||||||
fields3->Set("actual_end_time_usec", time_bag.second);
|
if (downtime->GetFixed() || (!downtime->GetFixed() && downtime->GetTriggerTime() > 0)) {
|
||||||
|
fields3->Set("actual_end_time", DbValue::FromTimestamp(time_bag.first));
|
||||||
|
fields3->Set("actual_end_time_usec", time_bag.second);
|
||||||
|
}
|
||||||
|
|
||||||
fields3->Set("is_in_effect", 0);
|
fields3->Set("is_in_effect", 0);
|
||||||
query3.Fields = fields3;
|
query3.Fields = fields3;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user