Module: check_mk
Branch: master
Commit: 143b0e2addcc01348fb30c039ca4e12081637905
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=143b0e2addcc01…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Nov 6 08:54:35 2017 +0100
Fixed time zone handling for Stats: columns.
The time zone handling was done in the wrong place (during output and
filtering), so Stats: columns were handled incorrectly. Easy test case:
lq "GET services\nColumns: description last_check\nStats: min
last_check\nLocaltime: $(date --date='1 hour' '+%s')"
The time zone is now immediately handled when a time-related value is
retrieved. Apart from being more correct, this is simpler, too.
Change-Id: Ic94775f561f27742f0fd8653da3abb85cd0efac7
---
livestatus/src/Aggregator.h | 2 --
livestatus/src/IntAggregator.cc | 1 -
livestatus/src/IntColumn.cc | 1 -
livestatus/src/IntFilter.cc | 1 -
livestatus/src/OffsetTimeColumn.cc | 4 ++--
livestatus/src/OffsetTimeColumn.h | 5 ++---
livestatus/src/Query.cc | 8 +++----
livestatus/src/Renderer.cc | 27 ++++++++---------------
livestatus/src/Renderer.h | 5 +----
livestatus/src/RendererBrokenCSV.h | 7 ++----
livestatus/src/RendererCSV.cc | 3 +--
livestatus/src/RendererCSV.h | 4 +---
livestatus/src/RendererJSON.cc | 3 +--
livestatus/src/RendererJSON.h | 4 +---
livestatus/src/RendererPython.cc | 3 +--
livestatus/src/RendererPython.h | 5 +----
livestatus/src/RendererPython3.cc | 3 +--
livestatus/src/RendererPython3.h | 5 +----
livestatus/src/TableEventConsole.h | 5 +++--
livestatus/src/TimeAggregator.cc | 9 ++++----
livestatus/src/TimeColumn.cc | 13 +++++++----
livestatus/src/TimeColumn.h | 8 +++++--
livestatus/src/TimeFilter.cc | 45 +++++++++++++++-----------------------
livestatus/src/TimeFilter.h | 2 --
livestatus/src/TimePointerColumn.h | 10 ++++-----
25 files changed, 73 insertions(+), 110 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=143b0e2add…