diff --git a/connector/collector/docker.go b/connector/collector/docker.go index b2377ee..18c29d0 100644 --- a/connector/collector/docker.go +++ b/connector/collector/docker.go @@ -114,10 +114,10 @@ func (c *Docker) ReadIO(stats *api.Stats) { var read, write int64 for _, blk := range stats.BlkioStats.IOServiceBytesRecursive { if blk.Op == "Read" { - read = int64(blk.Value) + read += int64(blk.Value) } if blk.Op == "Write" { - write = int64(blk.Value) + write += int64(blk.Value) } } c.IOBytesRead, c.IOBytesWrite = read, write diff --git a/connector/main.go b/connector/main.go index 0907a77..afb95c1 100644 --- a/connector/main.go +++ b/connector/main.go @@ -22,7 +22,7 @@ type Connector interface { All() container.Containers // Get returns a single container.Container by ID Get(string) (*container.Container, bool) - // Wait waits for the underlying connection to be lost before returning + // Wait blocks until the underlying connection is lost Wait() struct{} }