Skip to content

Commit

Permalink
Merge pull request #85 from odinuge/cgroups-hugetlb-fix
Browse files Browse the repository at this point in the history
Fix cgroup hugetlb size prefix for kB
  • Loading branch information
estesp authored Jun 3, 2019
2 parents 97bda9c + 51dcf5f commit 42091f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func readTasksPids(path string, subsystem Name) ([]Task, error) {
func hugePageSizes() ([]string, error) {
var (
pageSizes []string
sizeList = []string{"B", "kB", "MB", "GB", "TB", "PB"}
sizeList = []string{"B", "KB", "MB", "GB", "TB", "PB"}
)
files, err := ioutil.ReadDir("/sys/kernel/mm/hugepages")
if err != nil {
Expand Down

0 comments on commit 42091f5

Please sign in to comment.