fix a bug in storage unit tests
This commit is contained in:
parent
8e371c64c0
commit
ecf2346443
@ -44,7 +44,7 @@ func buildTrace(cpu, mem []uint64, duration time.Duration) []*info.ContainerStat
|
|||||||
stats.Cpu.Usage.Total = cpuTotalUsage
|
stats.Cpu.Usage.Total = cpuTotalUsage
|
||||||
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.Cpu.Usage.PerCpu = []uint64{cpuUsage}
|
stats.Cpu.Usage.PerCpu = []uint64{cpuTotalUsage}
|
||||||
|
|
||||||
stats.Memory.Usage = mem[i]
|
stats.Memory.Usage = mem[i]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user