- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for hugePageSizeUnitList (0.26 sec)
-
pkg/apis/core/v1/helper/helpers.go
// <size><unit-prefix>B (1024 = "1KB", 1048576 = "1MB", etc). func HugePageUnitSizeFromByteSize(size int64) (string, error) { // hugePageSizeUnitList is borrowed from opencontainers/runc/libcontainer/cgroups/utils.go var hugePageSizeUnitList = []string{"B", "KB", "MB", "GB", "TB", "PB"} idx := 0 len := len(hugePageSizeUnitList) - 1 for size%1024 == 0 && idx < len { size /= 1024 idx++ } if size > 1024 && idx < len {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 23:03:54 UTC 2024 - 11.4K bytes - Viewed (0)