From 3b2805834bd347082d55a3b0a767cacfd8ce13e3 Mon Sep 17 00:00:00 2001 From: rajasec Date: Fri, 19 Feb 2016 22:53:25 +0530 Subject: [PATCH] Adding linux label to test file Signed-off-by: rajasec Fixed review comments Signed-off-by: rajasec --- libcontainer/cgroups/stats.go | 4 ++-- libcontainer/cgroups/utils_test.go | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libcontainer/cgroups/stats.go b/libcontainer/cgroups/stats.go index 54ace418..a9a07434 100644 --- a/libcontainer/cgroups/stats.go +++ b/libcontainer/cgroups/stats.go @@ -46,7 +46,7 @@ type MemoryStats struct { Usage MemoryData `json:"usage,omitempty"` // usage of memory + swap SwapUsage MemoryData `json:"swap_usage,omitempty"` - // usafe of kernel memory + // usage of kernel memory KernelUsage MemoryData `json:"kernel_usage,omitempty"` Stats map[string]uint64 `json:"stats,omitempty"` } @@ -80,7 +80,7 @@ type HugetlbStats struct { Usage uint64 `json:"usage,omitempty"` // maximum usage ever recorded. MaxUsage uint64 `json:"max_usage,omitempty"` - // number of times htgetlb usage allocation failure. + // number of times hugetlb usage allocation failure. Failcnt uint64 `json:"failcnt"` } diff --git a/libcontainer/cgroups/utils_test.go b/libcontainer/cgroups/utils_test.go index e79384ce..47bbd5e2 100644 --- a/libcontainer/cgroups/utils_test.go +++ b/libcontainer/cgroups/utils_test.go @@ -1,3 +1,5 @@ +// +build linux + package cgroups import (