Codebase list golang-github-go-kit-kit / 85a8f27
metrics: remove commented-out debug code (#770) Iskander (Alex) Sharipov authored 5 years ago Peter Bourgon committed 5 years ago
2 changed file(s) with 0 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3939
4040 have := map[string]float64{}
4141 s.Walk(func(name string, lvs LabelValues, obs []float64) bool {
42 //t.Logf("%s %v => %v", name, lvs, obs)
4342 have[name+" ["+strings.Join(lvs, "")+"]"] += sum(obs)
4443 return true
4544 })
4646 re := regexp.MustCompile(regex)
4747 buf := &bytes.Buffer{}
4848 w.WriteTo(buf)
49 //fmt.Fprintf(os.Stderr, "%s\n", buf.String())
5049 s := bufio.NewScanner(buf)
5150 for s.Scan() {
5251 match := re.FindStringSubmatch(s.Text())