storage: Separate returned jobs in jobs cli

This commit is contained in:
Łukasz Magiera
2020-11-09 23:13:29 +01:00
parent 27a9dd3bbb
commit f819e71d12
3 changed files with 12 additions and 5 deletions
+5 -3
View File
@@ -187,10 +187,12 @@ var sealingJobsCmd = &cli.Command{
for _, l := range lines {
state := "running"
if l.RunWait > 0 {
switch {
case l.RunWait > 0:
state = fmt.Sprintf("assigned(%d)", l.RunWait-1)
}
if l.RunWait == -1 {
case l.RunWait == -2:
state = "returned"
case l.RunWait == -1:
state = "ret-wait"
}
dur := "n/a"