We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea5be33 commit f608736Copy full SHA for f608736
pkg/kubelet/stats/helper.go
@@ -51,7 +51,7 @@ func cadvisorInfoToCPUandMemoryStats(info *cadvisorapiv2.ContainerInfo) (*statsa
51
cpuStats.UsageCoreNanoSeconds = &cstat.Cpu.Usage.Total
52
}
53
54
- if info.Spec.HasMemory {
+ if info.Spec.HasMemory && cstat.Memory != nil {
55
pageFaults := cstat.Memory.ContainerData.Pgfault
56
majorPageFaults := cstat.Memory.ContainerData.Pgmajfault
57
memoryStats = &statsapi.MemoryStats{
0 commit comments