- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for convertCPUValue (0.32 sec)
-
pkg/kubelet/winstats/perfcounter_nodestats.go
cpuUsageCoreNanoSeconds: p.convertCPUValue(cpuCores, cpuValue), cpuUsageNanoCores: p.getCPUUsageNanoCores(), memoryPrivWorkingSetBytes: memWorkingSetValue, memoryCommittedBytes: memCommittedBytesValue, interfaceStats: networkAdapterStats, timeStamp: time.Now(), } } func (p *perfCounterNodeStatsClient) convertCPUValue(cpuCores int, cpuValue uint64) uint64 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 26 18:37:21 UTC 2024 - 9.2K bytes - Viewed (0) -
pkg/kubelet/winstats/perfcounter_nodestats_test.go
{cpuValue: uint64(100), expected: uint64(4000000000)}, } var cpuCores = 4 for _, tc := range testCases { p := perfCounterNodeStatsClient{} newValue := p.convertCPUValue(cpuCores, tc.cpuValue) assert.Equal(t, tc.expected, newValue) } } func TestGetCPUUsageNanoCores(t *testing.T) { // Scaled expected unit test values by the frequency the CPU perf counters are polled.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 26 18:37:21 UTC 2024 - 5.7K bytes - Viewed (0)