Skip to content

Commit 185ede8

Browse files
committed
fix wrongly calculated duration
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
1 parent 8a02b54 commit 185ede8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector_base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (c *CollectorBase) collectionStart() {
6060
}
6161

6262
func (c *CollectorBase) collectionFinish() {
63-
duration := time.Until(*c.collectionStartTime)
63+
duration := time.Since(*c.collectionStartTime)
6464
c.LastScrapeDuration = &duration
6565

6666
c.collectionLastTime = c.collectionStartTime

0 commit comments

Comments
 (0)