Module: check_mk
Branch: master
Commit: 164f1f1ba2cccb8bf2b7474c5545541f6766ed9f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=164f1f1ba2cccb…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Sep 3 12:24:34 2018 +0200
Just for consistency: Handle unknown timeperiod as 24X7.
Change-Id: I876ba0a87033171972f6d3956e20e20c17fe4ca8
---
livestatus/src/TimeperiodColumn.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/livestatus/src/TimeperiodColumn.cc b/livestatus/src/TimeperiodColumn.cc
index 6986acd..dbad88b 100644
--- a/livestatus/src/TimeperiodColumn.cc
+++ b/livestatus/src/TimeperiodColumn.cc
@@ -51,6 +51,5 @@ int32_t TimeperiodColumn::getValue(Row row,
return g_timeperiods_cache->inTimeperiod(tp) ? 1 : 0;
}
#endif
- // no timeperiod set -> assume 24X7
- return 0;
+ return 1; // unknown timeperiod is assumed to be 24X7
}