From 23255f14995ba06de664dbb110cf974557c3507b Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Mon, 12 May 2014 15:21:42 +0100 Subject: [PATCH] Fix negative Next Retrieval on status page. Change-Id: Ifa754034660a251fee71f166dbf057697ec4e872 --- retrieval/target.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retrieval/target.go b/retrieval/target.go index ffccdc169..8f61dcdfd 100644 --- a/retrieval/target.go +++ b/retrieval/target.go @@ -267,7 +267,7 @@ func (t *target) ScheduledFor() time.Time { } 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 {