Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CpuWeightToCpuShares (0.14 sec)

  1. pkg/kubelet/cm/cgroup_manager_linux_test.go

    			cpuWeight:         245,
    			expectedCpuShares: 6398,
    		},
    		{
    			cpuWeight:         10000,
    			expectedCpuShares: 262144,
    		},
    	}
    
    	for _, testCase := range testCases {
    		if actual := CpuWeightToCpuShares(testCase.cpuWeight); actual != testCase.expectedCpuShares {
    			t.Errorf("cpuWeight: %v, expectedCpuShares: %v, actualCpuShares: %v",
    				testCase.cpuWeight, testCase.expectedCpuShares, actual)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 18:21:21 UTC 2023
    - 6.1K bytes
    - Viewed (0)
Back to top