db: Addressed comments.

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
pull/5805/head
Bartek Plotka 2018-04-05 16:53:24 +01:00
parent 03e94365e1
commit 00594b85cd
1 changed files with 3 additions and 3 deletions

6
db.go
View File

@ -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")