Mercurial > gemma
changeset 3329:4a81accd6182
LWNL classification: removed optimisation to find good starting point. To be re-added later.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 20 May 2019 15:00:26 +0200 |
parents | 91a3f6835f3d |
children | 0e442b547f6d |
files | pkg/controllers/bottlenecks.go |
diffstat | 1 files changed, 14 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/controllers/bottlenecks.go Mon May 20 13:15:30 2019 +0200 +++ b/pkg/controllers/bottlenecks.go Mon May 20 15:00:26 2019 +0200 @@ -663,17 +663,21 @@ for pfrom, pto, label := interval(); label != ""; pfrom, pto, label = interval() { - //log.Printf("pfrom: %v\n", pfrom) + samples := ms + + /* + //log.Printf("pfrom: %v\n", pfrom) - // Find good starting point - idx := sort.Search(len(ms), func(i int) bool { - return !ms[i].when.Before(pfrom) - }) - //log.Printf("%d\n", idx) - if idx > 0 { - idx-- - } - samples := ms[idx:] + // Find good starting point + idx := sort.Search(len(ms), func(i int) bool { + return !ms[i].when.Before(pfrom) + }) + //log.Printf("%d\n", idx) + if idx > 0 { + idx-- + } + samples := ms[idx:] + */ ranges := samples.classifyAvailMeasurements( pfrom, pto,