summaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-03-23 20:37:25 +0100
committerGitHub <noreply@github.com>2022-03-23 20:37:25 +0100
commit73713062806aa4c2db25dc62e2fff47406085dc8 (patch)
tree218b63ae146c34a784e238c43c18a33eca971d85 /pkg/api
parent109224717354b1d32d1be854a019fe9d4a55cfa6 (diff)
parent130bcc3a93d82674eaaf2a62f854983db263a940 (diff)
downloadpodman-73713062806aa4c2db25dc62e2fff47406085dc8.tar.gz
podman-73713062806aa4c2db25dc62e2fff47406085dc8.tar.bz2
podman-73713062806aa4c2db25dc62e2fff47406085dc8.zip
Merge pull request #13597 from Luap99/stats
podman stats: calc CPU percentage correctly
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/handlers/compat/containers_stats.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/containers_stats.go b/pkg/api/handlers/compat/containers_stats.go
index 99f14d02f..77b16b03e 100644
--- a/pkg/api/handlers/compat/containers_stats.go
+++ b/pkg/api/handlers/compat/containers_stats.go
@@ -56,7 +56,7 @@ func StatsContainer(w http.ResponseWriter, r *http.Request) {
return
}
- stats, err := ctnr.GetContainerStats(&define.ContainerStats{})
+ stats, err := ctnr.GetContainerStats(nil)
if err != nil {
utils.InternalServerError(w, errors.Wrapf(err, "failed to obtain Container %s stats", name))
return