mirror of https://github.com/docker/docs.git
cleanup: clean up commented code in daemon/stats.go
Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
parent
287b0a6348
commit
2d9c022946
|
@ -47,7 +47,6 @@ func (daemon *Daemon) ContainerStats(ctx context.Context, prefixOrName string, c
|
||||||
getStatJSON := func(v interface{}) *types.StatsJSON {
|
getStatJSON := func(v interface{}) *types.StatsJSON {
|
||||||
ss := v.(types.StatsJSON)
|
ss := v.(types.StatsJSON)
|
||||||
ss.PreCPUStats = preCPUStats
|
ss.PreCPUStats = preCPUStats
|
||||||
// ss.MemoryStats.Limit = uint64(update.MemoryLimit)
|
|
||||||
preCPUStats = ss.CPUStats
|
preCPUStats = ss.CPUStats
|
||||||
return &ss
|
return &ss
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue