Mercurial > gemma
changeset 5258:b373213d8e7c new-fwa
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.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 13 May 2020 14:19:01 +0200 |
parents | 0446a6e230b4 |
children | 93b95ac2cf5b |
files | pkg/controllers/fwa.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 } }