Fix DNS-SD target refresh condition.

This commit is contained in:
Julius Volz 2013-06-13 16:10:39 +02:00
parent 697d3139d0
commit 91cf1e9a26
1 changed files with 1 additions and 1 deletions

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
}