Module: check_mk
Branch: master
Commit: c7a6b2d20c4647eeddc987416b38c9983032be27
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c7a6b2d20c4647…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Dec 2 13:54:24 2014 +0100
Special handling of modified attributes in Livestatus for CMC
---
livestatus/src/AttributelistColumn.cc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/livestatus/src/AttributelistColumn.cc
b/livestatus/src/AttributelistColumn.cc
index e3eb636..6d9cf9e 100644
--- a/livestatus/src/AttributelistColumn.cc
+++ b/livestatus/src/AttributelistColumn.cc
@@ -61,7 +61,11 @@ unsigned long AttributelistColumn::getValue(void *data)
data = shiftPointer(data);
if (!data) return 0;
+#ifdef CMC
+ return *(uint16_t *)((char *)data + _offset);
+#else
return *(unsigned long *)((char *)data + _offset);
+#endif
}
void AttributelistColumn::output(void *data, Query *query)