Module: check_mk
Branch: master
Commit: 170070ed0879ea46eb441d1392ecdd1341c68599
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=170070ed0879ea…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Apr 22 14:53:32 2014 +0200
FIX availability: fixed bug causing the availability feature not considering timeperiod
transitions
---
.werks/903 | 9 +++++++++
ChangeLog | 1 +
livestatus/src/TableStateHistory.cc | 1 -
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.werks/903 b/.werks/903
new file mode 100644
index 0000000..ab0f5cc
--- /dev/null
+++ b/.werks/903
@@ -0,0 +1,9 @@
+Title: availability: fixed bug causing the availability feature not considering
timeperiod transitions
+Level: 1
+Component: core
+Class: fix
+State: unknown
+Version: 1.2.5i3
+Date: 1398171132
+
+
diff --git a/ChangeLog b/ChangeLog
index 417c308..581bb2e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
Core & Setup:
* 0884 New options --oid and --extraoid for cmk --snmpwalk...
* 0785 FIX: Availability: fixed memory leak in table statehist...
+ * 0903 FIX: availability: fixed bug causing the availability feature not considering
timeperiod transitions
Checks & Agents:
* 0149 cisco_secure: New check for Port Security on Cisco swichtes
diff --git a/livestatus/src/TableStateHistory.cc b/livestatus/src/TableStateHistory.cc
index 5d4ac39..b2fc7dc 100644
--- a/livestatus/src/TableStateHistory.cc
+++ b/livestatus/src/TableStateHistory.cc
@@ -609,7 +609,6 @@ void TableStateHistory::answerQuery(Query *query)
char *save_ptr;
char *buffer = strdup(entry->_options);
char *tp_name = strtok_r(buffer, ";", &save_ptr);
- strtok_r(NULL, ";", &save_ptr);
char *tp_state = strtok_r(NULL, ";", &save_ptr);
if (tp_state)
tp_state = strtok_r(NULL, ";", &save_ptr);