Move task list to runtimes

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-06-08 17:24:33 -07:00
parent a40f307e88
commit 588c11852b
3 changed files with 112 additions and 16 deletions

View File

@@ -47,7 +47,7 @@ type cgroupsMonitor struct {
}
func getID(t plugin.Task) string {
return fmt.Sprintf("%s-%s", t.Info().ID, t.Info().Namespace)
return fmt.Sprintf("%s-%s", t.Info().Namespace, t.Info().ID)
}
func (m *cgroupsMonitor) Monitor(c plugin.Task) error {