Module: check_mk
Branch: master
Commit: 127a46af3721a844c1a205cc2d8fab1dd901619a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=127a46af3721a8…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Nov 3 14:54:01 2017 +0100
Do not derive time-related columns/filtes/aggregators from their int counterparts.
They have different semantics (time zone offset!), and we derived only to
re-use code, which is considered an anti-pattern. We will fix the newly
introduced code duplication later, the main point of this completely
mechanical commit is to get the class hierarchies right.
Change-Id: I23d43fd79fdb8d3caea7fd3502d5ee26dd37c16c
---
livestatus/src/IntColumn.h | 10 +--
livestatus/src/IntFilter.h | 6 +-
livestatus/src/Makefile.am | 1 +
livestatus/src/TimeAggregator.cc | 122 +++++++++++++++++++++++++++
livestatus/src/TimeAggregator.h | 56 +++++++++++++
livestatus/src/TimeColumn.cc | 6 +-
livestatus/src/TimeColumn.h | 15 ++--
livestatus/src/TimeFilter.cc | 177 +++++++++++++++++++++++++++++++++++++++
livestatus/src/TimeFilter.h | 33 ++++++--
9 files changed, 404 insertions(+), 22 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=127a46af37…