mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Change seconds()*1000 to milliseconds()
Signed-off-by: arthursens <arthursens2005@gmail.com>
This commit is contained in:
parent
70c69aaa6c
commit
8493704b9b
|
@ -840,8 +840,7 @@ func (db *DB) Compact() (returnErr error) {
|
|||
}
|
||||
|
||||
compactionDuration := time.Since(start)
|
||||
// TODO: change to milliseconds once fuzzit tests are removed
|
||||
if int64(compactionDuration.Seconds())*1000 > db.head.chunkRange.Load() {
|
||||
if compactionDuration.Milliseconds() > db.head.chunkRange.Load() {
|
||||
level.Warn(db.logger).Log(
|
||||
"msg", "Head compaction took longer than the block time range, compactions are falling behind and won't be able to catch up",
|
||||
"duration", compactionDuration.String(),
|
||||
|
|
Loading…
Reference in a new issue