# HG changeset patch # User Sascha Wilde # Date 1575469702 -3600 # Node ID de7aa92308377f7c41f404cd66ac2268b64e2d56 # Parent 082027fb2d58d333bddd86b8f002b46df886a919 Limit interpolation of time ranges for Available Fairway Depths to 1.5h. This is necessary to prevent interpolation into time ranges where intentionally no data is provided. (When bottlenecks are "inactive" no data is provided and gemma shall assume perfect conditions for that time) diff -r 082027fb2d58 -r de7aa9230837 pkg/controllers/bottlenecks.go --- a/pkg/controllers/bottlenecks.go Wed Dec 04 13:35:34 2019 +0100 +++ b/pkg/controllers/bottlenecks.go Wed Dec 04 15:28:22 2019 +0100 @@ -219,6 +219,11 @@ continue } + if p2.when.Sub(p1.when).Hours() > 1.5 { + // Don't interpolate ranges bigger then one hour + continue + } + lo, hi := maxTime(p1.when, from), minTime(p2.when, to) m1, m2 := access(p1), access(p2)