We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a72d7cd + e1246ba commit dea625cCopy full SHA for dea625c
1 file changed
opts/throttledevice.go
@@ -94,7 +94,7 @@ func (opt *ThrottledeviceOpt) String() string {
94
95
// GetList returns a slice of pointers to ThrottleDevices.
96
func (opt *ThrottledeviceOpt) GetList() []*blkiodev.ThrottleDevice {
97
- out := make([]*blkiodev.ThrottleDevice, 0, len(opt.values))
+ out := make([]*blkiodev.ThrottleDevice, len(opt.values))
98
copy(out, opt.values)
99
return out
100
}
0 commit comments