Mercurial > gemma
comparison pkg/controllers/fwa.go @ 5253:878d52d95e37 new-fwa
Early calcultion stop to prevent classification in the future.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 13 May 2020 10:26:13 +0200 |
parents | aebe1a12e8b9 |
children | 256ebbeb1252 |
comparison
equal
deleted
inserted
replaced
5252:aebe1a12e8b9 | 5253:878d52d95e37 |
---|---|
338 } | 338 } |
339 | 339 |
340 return out.Write(record) | 340 return out.Write(record) |
341 } | 341 } |
342 | 342 |
343 // Stop yesterday | |
344 end := common.MinTime(dusk(time.Now()).Add(-time.Nanosecond), to) | |
345 | |
343 // We step through the time in steps of one day. | 346 // We step through the time in steps of one day. |
344 for current = from; current.Before(to); { | 347 for current = from; current.Before(end); { |
345 | 348 |
346 next = current.AddDate(0, 0, 1) | 349 next = current.AddDate(0, 0, 1) |
347 | 350 |
348 // Assume that a bottleneck is over LDC. | 351 // Assume that a bottleneck is over LDC. |
349 overLDC := true | 352 overLDC := true |