Skip to content

Commit dea625c

Browse files
authored
Merge pull request #5340 from thaJeztah/26.1_backport_fix_bps_limit
[26.1 backport] run: fix GetList return empty issue for throttledevice
2 parents a72d7cd + e1246ba commit dea625c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

opts/throttledevice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (opt *ThrottledeviceOpt) String() string {
9494

9595
// GetList returns a slice of pointers to ThrottleDevices.
9696
func (opt *ThrottledeviceOpt) GetList() []*blkiodev.ThrottleDevice {
97-
out := make([]*blkiodev.ThrottleDevice, 0, len(opt.values))
97+
out := make([]*blkiodev.ThrottleDevice, len(opt.values))
9898
copy(out, opt.values)
9999
return out
100100
}

0 commit comments

Comments
 (0)