summaryrefslogtreecommitdiffhomepage
path: root/runsc/boot/events.go
diff options
context:
space:
mode:
Diffstat (limited to 'runsc/boot/events.go')
-rw-r--r--runsc/boot/events.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/runsc/boot/events.go b/runsc/boot/events.go
index ef6459b01..0eb75c14c 100644
--- a/runsc/boot/events.go
+++ b/runsc/boot/events.go
@@ -59,10 +59,11 @@ type Memory struct {
Raw map[string]uint64 `json:"raw,omitempty"`
}
-func (a *application) Event(_ *struct{}, out *Event) error {
+// Event gets the events from the container.
+func (cm *containerManager) Event(_ *struct{}, out *Event) error {
stats := &Stats{}
- stats.populateMemory(a.k)
- stats.populatePIDs(a.k)
+ stats.populateMemory(cm.k)
+ stats.populatePIDs(cm.k)
*out = Event{Type: "stats", Data: stats}
return nil
}