Browse Source

Fix negative Next Retrieval on status page.

Change-Id: Ifa754034660a251fee71f166dbf057697ec4e872
changes/17/217/1
Brian Brazil 11 years ago
parent
commit
23255f1499
  1. 2
      retrieval/target.go

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

Loading…
Cancel
Save