fixing style

This commit is contained in:
Shimin Guo 2016-01-15 10:22:52 -08:00
parent d656ffb0db
commit 97e71c9ac0
2 changed files with 4 additions and 4 deletions

View File

@ -44,8 +44,8 @@ func GenerateRandomStats(numStats, numCores int, duration time.Duration) []*info
stats.Cpu.Usage.User = stats.Cpu.Usage.Total stats.Cpu.Usage.User = stats.Cpu.Usage.Total
stats.Cpu.Usage.System = 0 stats.Cpu.Usage.System = 0
stats.Memory.Usage = uint64(rand.Int63n(4096)) stats.Memory.Usage = uint64(rand.Int63n(4096))
stats.Memory.Cache = uint64(rand.Int63n(4096)) stats.Memory.Cache = uint64(rand.Int63n(4096))
stats.Memory.RSS = uint64(rand.Int63n(4096)) stats.Memory.RSS = uint64(rand.Int63n(4096))
ret[i] = stats ret[i] = stats
} }
return ret return ret

View File

@ -85,8 +85,8 @@ func (p testSubcontainersInfoProvider) SubcontainersInfo(string, *info.Container
Pgfault: 12, Pgfault: 12,
Pgmajfault: 13, Pgmajfault: 13,
}, },
Cache: 14, Cache: 14,
RSS: 15, RSS: 15,
}, },
Network: info.NetworkStats{ Network: info.NetworkStats{
InterfaceStats: info.InterfaceStats{ InterfaceStats: info.InterfaceStats{