Fix negative Next Retrieval on status page.

Change-Id: Ifa754034660a251fee71f166dbf057697ec4e872
changes/17/217/1
Brian Brazil 11 years ago
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…
Cancel
Save