diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-07-02 12:50:15 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-07-02 12:59:26 +0200 |
commit | 7423426f73f367cd4e9246eb1fb1b6ac1ed33644 (patch) | |
tree | e584da6df22b92f76169d8da0eaea1032ed6e2fb /pkg/cgroups/cgroups.go | |
parent | 3b9ce8a3accdc906fb0c6c51e61556c26fbc9a43 (diff) | |
download | podman-7423426f73f367cd4e9246eb1fb1b6ac1ed33644.tar.gz podman-7423426f73f367cd4e9246eb1fb1b6ac1ed33644.tar.bz2 podman-7423426f73f367cd4e9246eb1fb1b6ac1ed33644.zip |
cgroups: fix times conversion
convert the time we read in microseconds to nanoseconds.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/cgroups/cgroups.go')
-rw-r--r-- | pkg/cgroups/cgroups.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/cgroups/cgroups.go b/pkg/cgroups/cgroups.go index 426bda559..d6c19212b 100644 --- a/pkg/cgroups/cgroups.go +++ b/pkg/cgroups/cgroups.go @@ -30,7 +30,7 @@ type CgroupControl struct { additionalControllers []controller } -// CPUUsage keeps stats for the CPU usage +// CPUUsage keeps stats for the CPU usage (unit: nanoseconds) type CPUUsage struct { Kernel uint64 Total uint64 |