[icinga-checkins] icinga.org: icinga-core/next: idoutils: fix wrong datatype in eventhandler data #2319

git at icinga.org git at icinga.org
Mon Feb 27 19:27:13 CET 2012


Module: icinga-core
Branch: next
Commit: 1997b5bcdafacddf2480b6b5e91740ec5087913b
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=1997b5bcdafacddf2480b6b5e91740ec5087913b

Author: Thomas Dressler <tdressler at tdressler.net>
Date:   Wed Feb 22 20:58:53 2012 +0100

idoutils: fix wrong datatype in eventhandler data #2319
refs #2319

---

 module/idoutils/src/db.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/module/idoutils/src/db.c b/module/idoutils/src/db.c
index 3f2e0e2..8b2314a 100644
--- a/module/idoutils/src/db.c
+++ b/module/idoutils/src/db.c
@@ -4706,7 +4706,7 @@ int ido2db_oci_prepared_statement_eventhandlerdata(ido2db_idi *idi) {
 	             "AND start_time_usec=:X7) "
 	             "WHEN MATCHED THEN "
 	             "UPDATE SET eventhandler_type=:X2, object_id=:X3, "
-	             "state=:X4, state_type=:X5, end_time=:X8, "
+	             "state=:X4, state_type=:X5, end_time=unixts2localts(:X8), "
 	             "end_time_usec=:X9, command_object_id=:X10, "
 	             "command_args=:X11, command_line=:X12, "
 	             "timeout=:X13, early_timeout=:X14, execution_time=:X15, "





More information about the icinga-checkins mailing list