1
0
mirror of https://github.com/containous/traefik.git synced 2025-08-15 01:49:34 +03:00

fix seconds to really be seconds

This commit is contained in:
Manuel Zapf
2017-10-12 16:26:03 +02:00
committed by Traefiker
parent 8d158402f3
commit cba0898e4f

View File

@ -85,7 +85,7 @@ func (p *Provider) intervalPoll(client rancher.Client, updateConfiguration func(
_, cancel := context.WithCancel(context.Background())
defer cancel()
ticker := time.NewTicker(time.Duration(p.RefreshSeconds))
ticker := time.NewTicker(time.Second * time.Duration(p.RefreshSeconds))
defer ticker.Stop()
var version string