mirror of
https://github.com/prometheus/prometheus
synced 2025-03-10 07:29:22 +00:00
Fix negative Next Retrieval on status page.
Change-Id: Ifa754034660a251fee71f166dbf057697ec4e872
This commit is contained in:
parent
da28f8dd13
commit
23255f1499
@ -267,7 +267,7 @@ func (t *target) ScheduledFor() time.Time {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *target) EstimatedTimeToExecute() time.Duration {
|
func (t *target) EstimatedTimeToExecute() time.Duration {
|
||||||
return t.scheduler.ScheduledFor().Sub(time.Now())
|
return time.Now().Sub(t.scheduler.ScheduledFor())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *target) LastError() error {
|
func (t *target) LastError() error {
|
||||||
|
Loading…
Reference in New Issue
Block a user