mirror of
https://github.com/containers/podman
synced 2024-10-21 17:53:44 +00:00
api: correctly set the container stats
override the outer scope variable instead of creating a local one. Otherwise the wrong variable would be used for the next iterations. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
53dc99fa60
commit
2b85382ca1
|
@ -97,7 +97,7 @@ streamLabel: // A label to flatten the scope
|
|||
|
||||
default:
|
||||
// Container stats
|
||||
stats, err := ctnr.GetContainerStats(stats)
|
||||
stats, err = ctnr.GetContainerStats(stats)
|
||||
if err != nil {
|
||||
logrus.Errorf("Unable to get container stats: %v", err)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue