Improve ps handling of container start/stop time

Previously all calculations were done based off the container's
start time. Retrieve end time and use it to calculate time
stopped for containers.

Also, convert ps JSON output to report timestamps for create,
start, and stop times.

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #1228
Approved by: rhatdan
This commit is contained in:
Matthew Heon
2018-08-07 11:56:18 -04:00
committed by Atomic Bot
parent 9e06478d83
commit 71793f9f8a
3 changed files with 18 additions and 13 deletions

1
.gitignore vendored
View File

@@ -15,4 +15,5 @@
.ropeproject
__pycache__
/cmd/podman/varlink/ioprojectatomicpodman.go
/cmd/podman/varlink/iopodman.go
.gopathok