Skip to content

Commit 348b32e

Browse files
committed
Fix retrohunt jobs ETA.
1 parent 0e4ba10 commit 348b32e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/retrohunt.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ func retrohuntListTable(cmd *cobra.Command) error {
8484
}
8585

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

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

0 commit comments

Comments
 (0)