mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 22:19:40 -08:00
Fix arguments for format string.
Change-Id: Ie0d55a70969c992b1afc6fa96b0e3f2171f0de5a
This commit is contained in:
parent
33d6f73d18
commit
df2f9e47b8
10
main.go
10
main.go
|
@ -106,8 +106,9 @@ func (p *prometheus) compact(olderThan time.Duration, groupSize int) error {
|
||||||
select {
|
select {
|
||||||
case p.curationSema <- true:
|
case p.curationSema <- true:
|
||||||
default:
|
default:
|
||||||
glog.Warningf("Deferred compaction for %s and %s due to existing operation.", operation, groupSize)
|
glog.Warningf("Deferred compaction for %s and %s due to existing operation.", olderThan, groupSize)
|
||||||
return
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
|
@ -134,8 +135,9 @@ func (p *prometheus) delete(olderThan time.Duration, batchSize int) error {
|
||||||
select {
|
select {
|
||||||
case p.curationSema <- true:
|
case p.curationSema <- true:
|
||||||
default:
|
default:
|
||||||
glog.Warningf("Deferred compaction for %s and %s due to existing operation.", operation, groupSize)
|
glog.Warningf("Deferred deletion for %s due to existing operation.", olderThan)
|
||||||
return
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
processor := metric.NewDeletionProcessor(&metric.DeletionProcessorOptions{
|
processor := metric.NewDeletionProcessor(&metric.DeletionProcessorOptions{
|
||||||
|
|
Loading…
Reference in a new issue