daily progress build

This commit is contained in:
Adrian Gallagher
2019-06-06 17:20:40 +10:00
parent 26795508ff
commit bd8dc47c38
14 changed files with 261 additions and 121 deletions

View File

@@ -86,7 +86,7 @@ func (c *Checker) Shutdown() {
// Monitor determines internet connectivity via a DNS lookup
func (c *Checker) Monitor(wg *sync.WaitGroup) {
c.wg.Add(1)
tick := time.NewTicker(time.Second)
tick := time.NewTicker(c.CheckInterval)
defer func() { tick.Stop(); c.wg.Done() }()
wg.Done()
for {