Merge pull request #5339 from thaJeztah/27.x_backport_fix_bps_limit

[27.x backport] run: fix GetList return empty issue for throttledevice
This commit is contained in:
Paweł Gronowski
2024-08-12 11:57:35 +02:00
committed by GitHub
+1 -1
View File
@@ -94,7 +94,7 @@ func (opt *ThrottledeviceOpt) String() string {
// GetList returns a slice of pointers to ThrottleDevices.
func (opt *ThrottledeviceOpt) GetList() []*blkiodev.ThrottleDevice {
out := make([]*blkiodev.ThrottleDevice, 0, len(opt.values))
out := make([]*blkiodev.ThrottleDevice, len(opt.values))
copy(out, opt.values)
return out
}