mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
8a27758364
It was possible to see output like this: "UpdateStatus": { "State": "updating", "StartedAt": "2017-04-14T17:10:03.226607162Z", "CompletedAt": "1970-01-01T00:00:00Z", "Message": "update in progress" } The timestamp fields were already changed to pointers, and left nil if the timestamp value was zero. However the zero-value of a timestamp from gRPC is different from the value Go considers to be zero. gRPC uses the Unix epoch instead of Go's epoch. Therefore, check that the timestamp does not match the Unix epoch. Also, add " ago" to the timestamps as shown in "docker service inspect --pretty", as they are shown as relative times. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> |
||
---|---|---|
.. | ||
controllers/plugin | ||
convert | ||
executor | ||
provider | ||
cluster.go | ||
filters.go | ||
filters_test.go | ||
helpers.go | ||
listen_addr.go | ||
listen_addr_linux.go | ||
listen_addr_others.go | ||
listen_addr_solaris.go | ||
networks.go | ||
noderunner.go | ||
nodes.go | ||
secrets.go | ||
services.go | ||
swarm.go | ||
tasks.go | ||
utils.go |