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

Fix DNS-SD target refresh condition.
This commit is contained in:
juliusv 2013-06-13 07:38:01 -07:00
commit 8702ec0673

View File

@ -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
}