File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ type containerInfo struct {
65
65
}
66
66
67
67
type containerData struct {
68
- oomEvents uint64
68
+ oomEvents atomic. Uint64
69
69
handler container.ContainerHandler
70
70
info containerInfo
71
71
memoryCache * memory.InMemoryCache
@@ -683,7 +683,7 @@ func (cd *containerData) updateStats() error {
683
683
}
684
684
}
685
685
686
- stats .OOMEvents = atomic . LoadUint64 ( & cd .oomEvents )
686
+ stats .OOMEvents = cd .oomEvents . Load ( )
687
687
688
688
var customStatsErr error
689
689
cm := cd .collectorManager .(* collector.GenericCollectorManager )
Original file line number Diff line number Diff line change @@ -1249,7 +1249,7 @@ func (m *manager) watchForNewOoms() error {
1249
1249
continue
1250
1250
}
1251
1251
for _ , cont := range conts {
1252
- atomic . AddUint64 ( & cont .oomEvents , 1 )
1252
+ cont .oomEvents . Add ( 1 )
1253
1253
}
1254
1254
}
1255
1255
}()
You can’t perform that action at this time.
0 commit comments