Merge pull request #1397 from prometheus/remove-old-scrapetime-setting

Remove old superfluous calls to setLastScrape().
This commit is contained in:
Fabian Reinartz 2016-02-15 22:46:09 +01:00
commit 1f70345d0c
1 changed files with 0 additions and 2 deletions

View File

@ -433,7 +433,6 @@ func (t *Target) RunScraper(sampleAppender storage.SampleAppender) {
ticker := time.NewTicker(lastScrapeInterval)
defer ticker.Stop()
t.status.setLastScrape(time.Now())
t.scrape(sampleAppender)
// Explanation of the contraption below:
@ -453,7 +452,6 @@ func (t *Target) RunScraper(sampleAppender storage.SampleAppender) {
return
case <-ticker.C:
took := time.Since(t.status.LastScrape())
t.status.setLastScrape(time.Now())
intervalStr := lastScrapeInterval.String()