From 91cf1e9a26329dbb62b382979c47b431a16c0171 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Thu, 13 Jun 2013 16:10:39 +0200 Subject: [PATCH] Fix DNS-SD target refresh condition. --- retrieval/target_provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retrieval/target_provider.go b/retrieval/target_provider.go index 7e23c090a..106b272cc 100644 --- a/retrieval/target_provider.go +++ b/retrieval/target_provider.go @@ -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 }