# HG changeset patch # User Sascha L. Teichmann # Date 1589219545 -7200 # Node ID 70d83b7d36ef6067c61171d8661006f530311b45 # Parent 91feaf7ac486f32aa54844bae6ee711afbb66e0c Track the number days LDCs are not available at bottlenecks. diff -r 91feaf7ac486 -r 70d83b7d36ef pkg/controllers/fwa.go --- a/pkg/controllers/fwa.go Mon May 11 19:42:07 2020 +0200 +++ b/pkg/controllers/fwa.go Mon May 11 19:52:25 2020 +0200 @@ -287,6 +287,7 @@ var shipableDays int allClasses := make([][]time.Duration, len(validities)) + missingLDCs := make([]int, len(validities)) // We step through the time in steps of one day. for current := from; current.Before(to); { @@ -311,7 +312,7 @@ // Let's see if we have a LDC for this day. ldc := vs.ldcs.find(current, next) if ldc == nil { - // TODO: log missing LCD + missingLDCs[i]++ continue } @@ -330,7 +331,6 @@ current, next, chooseBreaks[vs.limiting], limitingAccess[vs.limiting]) - } if shipable { @@ -350,6 +350,8 @@ current = next } + + // TODO: Log missing LDCs } func dusk(t time.Time) time.Time {