mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
Merge pull request #186 from Icinga/bugfix/cancel-downtime-183
History: correct event time of cancelled downtimes
This commit is contained in:
commit
69f005d9a7
1 changed files with 5 additions and 1 deletions
|
|
@ -291,7 +291,11 @@ func downtimeHistoryWorker(super *supervisor.Supervisor) {
|
|||
case "downtime_start":
|
||||
eventTime = values["start_time"].(string)
|
||||
case "downtime_end":
|
||||
eventTime = values["end_time"].(string)
|
||||
if values["has_been_cancelled"].(string) == "1" {
|
||||
eventTime = values["cancel_time"].(string)
|
||||
} else {
|
||||
eventTime = values["end_time"].(string)
|
||||
}
|
||||
}
|
||||
|
||||
data := []interface{}{
|
||||
|
|
|
|||
Loading…
Reference in a new issue