Merge pull request #232 from thaJeztah/backport-fix-system-df

[17.09] Fix variable shadowing causing LayersSize to be reported as 0
This commit is contained in:
Andrew Hsu
2017-09-20 13:56:23 -07:00
committed by GitHub
-1
View File
@@ -99,7 +99,6 @@ func (daemon *Daemon) SystemDiskUsage(ctx context.Context) (*types.DiskUsage, er
for platform := range daemon.stores {
layerRefs := daemon.getLayerRefs(platform)
allLayers := daemon.stores[platform].layerStore.Map()
var allLayersSize int64
for _, l := range allLayers {
select {
case <-ctx.Done():