mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 22:37:27 -08:00
Use <ix+1>_of_<shardCount> formatting for better readibility.
This commit is contained in:
parent
861f9083d8
commit
db7fa7621c
|
@ -482,7 +482,7 @@ func (c *LeveledCompactor) compact(dest string, dirs []string, open []*Block, sh
|
||||||
"count", len(blocks),
|
"count", len(blocks),
|
||||||
"sources", fmt.Sprintf("%v", uids),
|
"sources", fmt.Sprintf("%v", uids),
|
||||||
"duration", time.Since(start),
|
"duration", time.Since(start),
|
||||||
"shard", fmt.Sprintf("%d_of_%d", ix, shardCount),
|
"shard", fmt.Sprintf("%d_of_%d", ix+1, shardCount),
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
allOutputBlocksAreEmpty = false
|
allOutputBlocksAreEmpty = false
|
||||||
|
@ -496,7 +496,7 @@ func (c *LeveledCompactor) compact(dest string, dirs []string, open []*Block, sh
|
||||||
"ulid", meta.ULID,
|
"ulid", meta.ULID,
|
||||||
"sources", fmt.Sprintf("%v", uids),
|
"sources", fmt.Sprintf("%v", uids),
|
||||||
"duration", time.Since(start),
|
"duration", time.Since(start),
|
||||||
"shard", fmt.Sprintf("%d_of_%d", ix, shardCount),
|
"shard", fmt.Sprintf("%d_of_%d", ix+1, shardCount),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue