Skip to content

Commit

Permalink
Fix retrohunt jobs ETA.
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Nov 29, 2018
1 parent 0e4ba10 commit 348b32e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/retrohunt.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ func retrohuntListTable(cmd *cobra.Command) error {
}

eta := "-"
if e, ok := job.Attributes["eta"].(int64); ok {
eta = fmt.Sprintf("%ds", e)
if e, ok := job.Attributes["eta_seconds"].(int64); ok {
eta = time.Duration(e * 1000000000).String()
}

matches := rulesPattern.FindAllStringSubmatch(job.Attributes["rules"].(string), 5)
Expand Down

0 comments on commit 348b32e

Please sign in to comment.