mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
Increase timestamp precision
This commit is contained in:
@@ -372,7 +372,7 @@ func (c *container) env() map[string]string {
|
||||
func (c *container) getBaseNode() report.Node {
|
||||
result := report.MakeNodeWith(report.MakeContainerNodeID(c.ID()), map[string]string{
|
||||
ContainerID: c.ID(),
|
||||
ContainerCreated: c.container.Created.Format(time.RFC822),
|
||||
ContainerCreated: c.container.Created.Format(time.RFC3339Nano),
|
||||
ContainerCommand: c.container.Path + " " + strings.Join(c.container.Args, " "),
|
||||
ImageID: c.Image(),
|
||||
ContainerHostname: c.Hostname(),
|
||||
|
||||
@@ -43,7 +43,7 @@ func (m meta) Namespace() string {
|
||||
}
|
||||
|
||||
func (m meta) Created() string {
|
||||
return m.ObjectMeta.CreationTimestamp.Format(time.RFC822)
|
||||
return m.ObjectMeta.CreationTimestamp.Format(time.RFC3339Nano)
|
||||
}
|
||||
|
||||
func (m meta) Labels() map[string]string {
|
||||
|
||||
Reference in New Issue
Block a user