# HG changeset patch # User Sascha L. Teichmann # Date 1589372341 -7200 # Node ID b373213d8e7c700aca3a69443019135ce5717cbc # Parent 0446a6e230b4dd69c0f35f422aa995e7d600a4e4 Assume that the decision if a day is below LDC is only possible if there are values. If there are none assume its over LDC. diff -r 0446a6e230b4 -r b373213d8e7c pkg/controllers/fwa.go --- a/pkg/controllers/fwa.go Wed May 13 11:37:31 2020 +0200 +++ b/pkg/controllers/fwa.go Wed May 13 14:19:01 2020 +0200 @@ -379,7 +379,7 @@ ldc.value, (*availMeasurement).getValue) - if result[1] < 12*time.Hour { + if (result[0] != 0 || result[1] != 0) && result[1] < 12*time.Hour { overLDC = false } }