Module: check_mk
Branch: master
Commit: d10d6e89aeadbc0402602269565db4c8b0d7da82
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d10d6e89aeadbc…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri May 30 16:35:47 2014 +0200
FIX prediction: fixed bug where predicted levels were not recalculated
---
.werks/932 | 9 +++++++++
ChangeLog | 1 +
modules/prediction.py | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/932 b/.werks/932
new file mode 100644
index 0000000..ac0c999
--- /dev/null
+++ b/.werks/932
@@ -0,0 +1,9 @@
+Title: prediction: fixed bug where predicted levels were not recalculated
+Level: 1
+Component: checks
+Class: fix
+State: unknown
+Version: 1.2.5i3
+Date: 1401460381
+
+
diff --git a/ChangeLog b/ChangeLog
index edd58e9..799e864 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -97,6 +97,7 @@
* 0958 FIX: df.include: failed for checks with grouping patterns...
* 0924 FIX: windows agent: now able to execute python scripts again
* 0614 FIX: cmciii.temp, cmciii.humidity: fixed bugs to get performance data back
+ * 0932 FIX: prediction: fixed bug where predicted levels were not recalculated
Multisite:
* 0779 Hostgroups (Summary): Empty hostgroups are no longer shown (can be re-enabled
by filter)
diff --git a/modules/prediction.py b/modules/prediction.py
index b67facb..2bf679d 100644
--- a/modules/prediction.py
+++ b/modules/prediction.py
@@ -271,7 +271,7 @@ def get_predictive_levels(dsname, params, cf, levels_factor=1.0):
if last_info and last_info["time"] + period_info["valid"] *
period_info["slice"] < now:
if opt_debug:
sys.stderr.write("Prediction of %s outdated.\n" % timegroup)
- last_info = None
+ last_info = None
if last_info:
# TODO: faster file format. Binary encoded?