Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com> Upstream-commit: 0fbfa1449d917ee0778266139d6035fb0782f7c2 Component: engine
16 lines
247 B
Go
16 lines
247 B
Go
package blkiodev
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// WeightDevice is a structure that hold device:weight pair
|
|
type WeightDevice struct {
|
|
Path string
|
|
Weight uint16
|
|
}
|
|
|
|
func (w *WeightDevice) String() string {
|
|
return fmt.Sprintf("%s:%d", w.Path, w.Weight)
|
|
}
|