Skip to content

Commit

Permalink
Merge pull request #5339 from thaJeztah/27.x_backport_fix_bps_limit
Browse files Browse the repository at this point in the history
[27.x backport] run: fix GetList return empty issue for throttledevice
  • Loading branch information
vvoland authored Aug 12, 2024
2 parents 33573e2 + 946d109 commit 1f80c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opts/throttledevice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1f80c54

Please sign in to comment.