changeset 5245:9dd1ae697f93 new-fwa

If not valid assume all is in best conditions.
author Sascha L. Teichmann <teichmann@intevation.de>
date Tue, 12 May 2020 22:07:56 +0200
parents 8f9cd1df5028
children 6cbfa3c3803d
files pkg/controllers/fwa.go
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/controllers/fwa.go	Tue May 12 19:11:02 2020 +0200
+++ b/pkg/controllers/fwa.go	Tue May 12 22:07:56 2020 +0200
@@ -398,7 +398,11 @@
 			if highest > -1 {
 				counters[highest]++
 			}
+		} else { // assume that all is in best conditions
+			overLDCDays++
+			counters[len(counters)-1]++
 		}
+
 		totalDays++
 
 		if finish(next) {