commit 5d039ad44c10cd82dd9ba8fb1efd6a7caa9b6090 Author: Karsten Loesing karsten.loesing@gmx.net Date: Mon Mar 12 17:33:47 2018 +0100
Cut off lower number of expected clients at 0.
Fixes #25397. --- src/main/python/clients/detector.py | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/src/main/python/clients/detector.py b/src/main/python/clients/detector.py index 611f25b..6cf1c7d 100644 --- a/src/main/python/clients/detector.py +++ b/src/main/python/clients/detector.py @@ -363,6 +363,8 @@ def write_all(tss, minc, maxc, RANGES_FILE, INTERVAL=7): if not minv < maxv: print minv, maxv, series[i-INTERVAL], minc[i], maxc[i] assert minv < maxv + if minv < 0.0: + minv = 0.0 ranges_file.write("%s,%s,%s,%s\n" % (tss.all_dates[i], c, minv, maxv)) ranges_file.close()