Skip to content

Commit

Permalink
Merge pull request #2766 from Daimler/influxdb-test-fix
Browse files Browse the repository at this point in the history
Properly initialize nested struct in influxdb test
  • Loading branch information
bobbypage authored Dec 18, 2020
2 parents 52d8fb0 + a033a68 commit 0c54631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/internal/storage/influxdb/influxdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ 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{Name: "cycles", ScalingRatio: 1.5, Value: 4589}}},
Resctrl: info.ResctrlStats{
MemoryBandwidth: []info.MemoryBandwidthStats{
{TotalBytes: 11234, LocalBytes: 4567},
Expand Down

0 comments on commit 0c54631

Please sign in to comment.