Exit cli when all containers when no more containers to monitor

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2015-01-21 08:55:23 -08:00
parent 217a2bd1b6
commit 4b173199fd
3 changed files with 16 additions and 10 deletions
+1 -1
View File
@@ -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")