Use <ix+1>_of_<shardCount> formatting for better readibility.

This commit is contained in:
Peter Štibraný 2021-09-28 10:13:48 +02:00
parent 861f9083d8
commit db7fa7621c

View file

@ -482,7 +482,7 @@ func (c *LeveledCompactor) compact(dest string, dirs []string, open []*Block, sh
"count", len(blocks),
"sources", fmt.Sprintf("%v", uids),
"duration", time.Since(start),
"shard", fmt.Sprintf("%d_of_%d", ix, shardCount),
"shard", fmt.Sprintf("%d_of_%d", ix+1, shardCount),
)
} else {
allOutputBlocksAreEmpty = false
@ -496,7 +496,7 @@ func (c *LeveledCompactor) compact(dest string, dirs []string, open []*Block, sh
"ulid", meta.ULID,
"sources", fmt.Sprintf("%v", uids),
"duration", time.Since(start),
"shard", fmt.Sprintf("%d_of_%d", ix, shardCount),
"shard", fmt.Sprintf("%d_of_%d", ix+1, shardCount),
)
}
}