From 6fcc43f9e5ee6f52821ce51e647b590c788e8e60 Mon Sep 17 00:00:00 2001 From: "Wisniewski, Krzysztof2" Date: Thu, 8 Oct 2020 16:19:01 +0200 Subject: [PATCH] Fix wrong Perf constructor in influxdb test Signed-off-by: Wisniewski, Krzysztof2 --- cmd/internal/storage/influxdb/influxdb_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/internal/storage/influxdb/influxdb_test.go b/cmd/internal/storage/influxdb/influxdb_test.go index 9e8a58f943..bb484ae175 100644 --- a/cmd/internal/storage/influxdb/influxdb_test.go +++ b/cmd/internal/storage/influxdb/influxdb_test.go @@ -360,7 +360,11 @@ func createTestStats() (*info.ContainerInfo, *info.ContainerStats) { "2GB": {Usage: 9876, MaxUsage: 5432, Failcnt: 1}, }, ReferencedMemory: 12345, - PerfStats: []info.PerfStat{{Cpu: 1, Name: "cycles", ScalingRatio: 1.5, Value: 4589}}, + PerfStats: []info.PerfStat{{Cpu: 1, PerfValue: info.PerfValue{ + ScalingRatio: 1.5, + Value: 4589, + Name: "cycles", + }}}, Resctrl: info.ResctrlStats{ MemoryBandwidth: []info.MemoryBandwidthStats{ {TotalBytes: 11234, LocalBytes: 4567},