mirror of https://github.com/prometheus/prometheus
db: Addressed comments.
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>pull/5805/head
parent
03e94365e1
commit
00594b85cd
6
db.go
6
db.go
|
@ -590,7 +590,7 @@ func (o Overlaps) String() string {
|
||||||
var groups []string
|
var groups []string
|
||||||
for _, m := range overlaps {
|
for _, m := range overlaps {
|
||||||
groups = append(groups, fmt.Sprintf(
|
groups = append(groups, fmt.Sprintf(
|
||||||
"%s %d-%d <%s>",
|
"<ulid: %s, mint: %d, maxt: %d, range: %s>",
|
||||||
m.ULID.String(),
|
m.ULID.String(),
|
||||||
m.MinTime,
|
m.MinTime,
|
||||||
m.MaxTime,
|
m.MaxTime,
|
||||||
|
@ -598,11 +598,11 @@ func (o Overlaps) String() string {
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
res = append(res, fmt.Sprintf(
|
res = append(res, fmt.Sprintf(
|
||||||
"[%d-%d <%s>](%d): %s",
|
"[mint: %d, maxt: %d, range: %s, blocks: %d]: %s",
|
||||||
r.Min, r.Max,
|
r.Min, r.Max,
|
||||||
(time.Duration((r.Max-r.Min)/1000)*time.Second).String(),
|
(time.Duration((r.Max-r.Min)/1000)*time.Second).String(),
|
||||||
len(overlaps),
|
len(overlaps),
|
||||||
strings.Join(groups, "; ")),
|
strings.Join(groups, ", ")),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
return strings.Join(res, "\n")
|
return strings.Join(res, "\n")
|
||||||
|
|
Loading…
Reference in New Issue