Skip to content

Commit 42091f5

Browse files
authored
Merge pull request #85 from odinuge/cgroups-hugetlb-fix
Fix cgroup hugetlb size prefix for kB
2 parents 97bda9c + 51dcf5f commit 42091f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func readTasksPids(path string, subsystem Name) ([]Task, error) {
168168
func hugePageSizes() ([]string, error) {
169169
var (
170170
pageSizes []string
171-
sizeList = []string{"B", "kB", "MB", "GB", "TB", "PB"}
171+
sizeList = []string{"B", "KB", "MB", "GB", "TB", "PB"}
172172
)
173173
files, err := ioutil.ReadDir("/sys/kernel/mm/hugepages")
174174
if err != nil {

0 commit comments

Comments
 (0)