diff options
Diffstat (limited to 'libpod/stats.go')
-rw-r--r-- | libpod/stats.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/stats.go b/libpod/stats.go index e87654277..47fb16194 100644 --- a/libpod/stats.go +++ b/libpod/stats.go @@ -13,6 +13,7 @@ import ( // ContainerStats contains the statistics information for a running container type ContainerStats struct { ContainerID string + Name string CPU float64 CPUNano uint64 SystemNano uint64 @@ -30,6 +31,7 @@ type ContainerStats struct { func (c *Container) GetContainerStats(previousStats *ContainerStats) (*ContainerStats, error) { stats := new(ContainerStats) stats.ContainerID = c.ID() + stats.Name = c.Name() c.lock.Lock() defer c.lock.Unlock() if err := c.syncContainer(); err != nil { |