(t, u *Tag)
| 429 | } |
| 430 | |
| 431 | func tagDistance(t, u *Tag) float64 { |
| 432 | v, _ := measurement.Scale(u.Value, u.Unit, t.Unit) |
| 433 | if v < float64(t.Value) { |
| 434 | return float64(t.Value) - v |
| 435 | } |
| 436 | return v - float64(t.Value) |
| 437 | } |
| 438 | |
| 439 | func (b *builder) tagGroupLabel(g []*Tag) (label string, flat, cum int64) { |
| 440 | if len(g) == 1 { |
no test coverage detected
searching dependent graphs…