mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 15:28:35 +00:00
Exit cli when all containers when no more containers to monitor
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -98,7 +98,7 @@ func (s *statsCollector) run() {
|
||||
|
||||
const nanoSeconds = 1e9
|
||||
|
||||
// getSystemdCpuUSage returns the host system's cpu usage in nanoseconds
|
||||
// getSystemCpuUSage returns the host system's cpu usage in nanoseconds
|
||||
// for the system to match the cgroup readings are returned in the same format.
|
||||
func (s *statsCollector) getSystemCpuUsage() (uint64, error) {
|
||||
f, err := os.Open("/proc/stat")
|
||||
|
||||
Reference in New Issue
Block a user