Skip to content

Commit

Permalink
fix wrongly calculated duration
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed May 4, 2021
1 parent 8a02b54 commit 185ede8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (c *CollectorBase) collectionStart() {
}

func (c *CollectorBase) collectionFinish() {
duration := time.Until(*c.collectionStartTime)
duration := time.Since(*c.collectionStartTime)
c.LastScrapeDuration = &duration

c.collectionLastTime = c.collectionStartTime
Expand Down

0 comments on commit 185ede8

Please sign in to comment.