Fix negative Next Retrieval on status page.

Change-Id: Ifa754034660a251fee71f166dbf057697ec4e872
This commit is contained in:
Brian Brazil 2014-05-12 15:21:42 +01:00
parent da28f8dd13
commit 23255f1499

View File

@ -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 {