ah thanks -- i was going to pull it out tonight.  thanks for the merge :)


On Thu, May 22, 2014 at 5:26 PM, Victor Marmol <notifications@github.com>wrote:

> In api/client/commands.go:
>
> > +
> > +	if err != nil {
> > +		return err
> > +	}
> > +	outs := engine.NewTable("stats", 0)
> > +	if _, err := outs.ReadListFrom(body); err != nil {
> > +		return err
> > +	}
> > +	w := tabwriter.NewWriter(cli.out, 5, 6, 6, ' ', 0)
> > +	fmt.Fprintf(w, "CPU\tRSS\tCACHE\tACTIVE FILE\tUSAGE IN BYTES\n")
> > +	if len(outs.Data) != 2 {
> > +		return fmt.Errorf("Invalid stat data, please check logs")
> > +	}
> > +	cpu := outs.Data[0].GetSubEnv("Stats")
> > +	mem := outs.Data[1].GetSubEnv("Stats")
> > +	fmt.Fprintf(w, "%d\t%d\t%d\t%d\t%d\t\n", cpu.GetInt("percentage"), mem.GetInt("total_rss"), mem.GetInt("total_cache"), mem.GetInt("total_active_file"), mem.GetInt("usage_in_bytes"))
>
> Just merged the int64 change to hopefully make your patch simpler to
> review :)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dotcloud/docker/pull/5424/files#r12975432>
> .
>