# HG changeset patch # User Sascha L. Teichmann # Date 1558618358 -7200 # Node ID b9fc6c54661025bc359ddf458ede0be2d8bf2182 # Parent 44574af7e3d363c28404ab517fdf7fd9d33c9713 fairway availability: Normalize results to look like as we only have one bottleneck. diff -r 44574af7e3d3 -r b9fc6c546610 pkg/controllers/stretches.go --- a/pkg/controllers/stretches.go Thu May 23 15:25:46 2019 +0200 +++ b/pkg/controllers/stretches.go Thu May 23 15:32:38 2019 +0200 @@ -404,12 +404,15 @@ return } + // Normalize to look like as we have only one bottleneck. + scale := 1 / float64(len(loaded)) + for _, r := range results { record[0] = r.label - record[1] = fmt.Sprintf("%.3f", r.ldc[1].Hours()) + record[1] = fmt.Sprintf("%.3f", r.ldc[1].Hours()*scale) for i, d := range r.breaks { - record[2+i] = fmt.Sprintf("%.3f", d.Hours()) + record[2+i] = fmt.Sprintf("%.3f", d.Hours()*scale) } if err := out.Write(record); err != nil {