Module: check_mk
Branch: master
Commit: 2a6dba7e845bef0502ed6144f23f64b6f6f1dffa
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2a6dba7e845bef…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Oct 5 16:09:36 2017 +0200
Fixed (harmless) typo.
Change-Id: I43d278d274b36e190323da5e83f9d7370c4c2bb6
---
livestatus/src/CustomTimeperiodColumn.cc | 2 +-
livestatus/src/ServiceListColumn.cc | 2 +-
livestatus/src/TimeperiodColumn.cc | 2 +-
livestatus/src/TimeperiodsCache.cc | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/livestatus/src/CustomTimeperiodColumn.cc
b/livestatus/src/CustomTimeperiodColumn.cc
index 3c6986f..3ea8750 100644
--- a/livestatus/src/CustomTimeperiodColumn.cc
+++ b/livestatus/src/CustomTimeperiodColumn.cc
@@ -40,7 +40,7 @@ int32_t CustomTimeperiodColumn::getValue(
g_timeperiods_cache->inTimeperiod(cvm->variable_value));
}
}
- return 1; // assume 7X24
+ return 1; // assume 24X7
}
customvariablesmember *CustomTimeperiodColumn::getCVM(Row row) const {
diff --git a/livestatus/src/ServiceListColumn.cc b/livestatus/src/ServiceListColumn.cc
index 679f418..713f0d5 100644
--- a/livestatus/src/ServiceListColumn.cc
+++ b/livestatus/src/ServiceListColumn.cc
@@ -98,5 +98,5 @@ int ServiceListColumn::inCustomTimeperiod(service *svc,
g_timeperiods_cache->inTimeperiod(cvm->variable_value));
}
}
- return 1; // assume 7X24
+ return 1; // assume 24X7
}
diff --git a/livestatus/src/TimeperiodColumn.cc b/livestatus/src/TimeperiodColumn.cc
index 55e2a28..43e1e5f 100644
--- a/livestatus/src/TimeperiodColumn.cc
+++ b/livestatus/src/TimeperiodColumn.cc
@@ -43,6 +43,6 @@ int32_t TimeperiodColumn::getValue(Row row,
if (auto tp = columnData<timeperiod>(row)) {
return g_timeperiods_cache->inTimeperiod(tp) ? 1 : 0;
}
- // no timeperiod set -> Nagios assumes 7x24
+ // no timeperiod set -> Nagios assumes 24X7
return 0;
}
diff --git a/livestatus/src/TimeperiodsCache.cc b/livestatus/src/TimeperiodsCache.cc
index 6742ee2..9969419 100644
--- a/livestatus/src/TimeperiodsCache.cc
+++ b/livestatus/src/TimeperiodsCache.cc
@@ -96,7 +96,7 @@ bool TimeperiodsCache::inTimeperiod(const string &tpname) const {
return inTimeperiod(tp);
}
}
- return true; // unknown timeperiod is assumed to be 7X24
+ return true; // unknown timeperiod is assumed to be 24X7
}
bool TimeperiodsCache::inTimeperiod(const timeperiod *tp) const {