changeset 5205:c7907715309f new-fwa

LC comparison are always run against the value field of the measurements.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 11 May 2020 11:17:00 +0200
parents 7ca9e6c9a203
children 23addd19a6e2
files pkg/controllers/fwa.go
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/controllers/fwa.go	Mon May 11 11:03:19 2020 +0200
+++ b/pkg/controllers/fwa.go	Mon May 11 11:17:00 2020 +0200
@@ -267,11 +267,10 @@
 				result := bottlenecks[i].measurements.classify(
 					current, next,
 					ldc.value,
-					vs.limiting)
+					(*availMeasurement).getValue)
 
 				if result[1] < 12*time.Hour {
 					shipable = false
-					break
 				}
 			}
 		}