From a71fdd464503a2f8c92449b59c6b07324bd956a2 Mon Sep 17 00:00:00 2001 From: Nan Monnand Deng Date: Fri, 20 Jun 2014 18:22:43 -0400 Subject: [PATCH] grammar --- advice/{inference => interference}/detector.go | 8 ++++---- info/advice.go | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) rename advice/{inference => interference}/detector.go (79%) diff --git a/advice/inference/detector.go b/advice/interference/detector.go similarity index 79% rename from advice/inference/detector.go rename to advice/interference/detector.go index f6f9b676..8c291763 100644 --- a/advice/inference/detector.go +++ b/advice/interference/detector.go @@ -17,13 +17,13 @@ package inference import "github.com/google/cadvisor/info" // InterferenceDectector detects if there's a container which -// interference with a set of container. The detector monitors -// a set of container and find the victims and antagnist. +// interferences with a set of containers. The detector tracks +// a set of containers and find the victims and antagonist. type InterferenceDetector interface { - // Monitor the behavior of the container. + // Tracks the behavior of the container. AddContainer(ref info.ContainerReference) - // Returns a list of Interference. The upper layer may take action + // Returns a list of possible interferences. The upper layer may take action // based on the interference. Detect() ([]*info.Interference, error) diff --git a/info/advice.go b/info/advice.go index 0bd51f18..8084cf47 100644 --- a/info/advice.go +++ b/info/advice.go @@ -18,17 +18,17 @@ package info // container, antagonist, interferes the performance of other // containers, victims. type Interference struct { - // The absolute path of the antagnoism container name. This field + // Absolute name of the antagonist container name. This field // should not be empty. Antagonist string `json:"antagonist"` - // The absolute path of victims. This field should not be empty. + // The absolute path of the victims. This field should not be empty. Victims []string `json:"victims"` // The name of the detector used to detect this antagonism. This field // should not be empty Detector string `json:"detector"` - // Human readable description of the interference + // Human readable description of this interference Description string `json:"description,omitempty"` }