Merge pull request #299 from prometheus/fix/sd-refresh-condition

Fix DNS-SD target refresh condition.
pull/300/merge
juliusv 12 years ago
commit 8702ec0673

@ -52,7 +52,7 @@ func NewSdTargetProvider(job config.JobConfig) *sdTargetProvider {
}
func (p *sdTargetProvider) Targets() ([]Target, error) {
if time.Since(p.lastRefresh) > p.refreshInterval {
if time.Since(p.lastRefresh) < p.refreshInterval {
return p.targets, nil
}

Loading…
Cancel
Save