Merge pull request #2097 from littlejawa/issue_crio_ctr_6_main

runtime: report finish time in containers stats
This commit is contained in:
Fabiano Fidêncio 2021-06-23 22:53:12 +02:00 committed by GitHub
commit c47a597568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -623,6 +623,7 @@ func (s *service) State(ctx context.Context, r *taskAPI.StateRequest) (_ *taskAP
Stderr: c.stderr,
Terminal: c.terminal,
ExitStatus: c.exit,
ExitedAt: c.exitTime,
}, nil
}
@ -642,6 +643,7 @@ func (s *service) State(ctx context.Context, r *taskAPI.StateRequest) (_ *taskAP
Stderr: execs.tty.stderr,
Terminal: execs.tty.terminal,
ExitStatus: uint32(execs.exitCode),
ExitedAt: execs.exitTime,
}, nil
}