runtime: fix invalid comments for pkg/resourcecontrol

Some comments are copied and not adjusted to the
pkg/resourcecontrol package.

Fixes: #3835

Signed-off-by: bin <bin@hyper.sh>
This commit is contained in:
bin
2022-03-05 10:27:32 +08:00
parent 2af91b23e1
commit 1b34494b2f
2 changed files with 3 additions and 3 deletions

View File

@@ -22,14 +22,14 @@ func SetLogger(logger *logrus.Entry) {
controllerLogger = logger.WithFields(fields)
}
// HypervisorType describes an hypervisor type.
// ResourceControllerType describes a resource controller type.
type ResourceControllerType string
const (
LinuxCgroups ResourceControllerType = "cgroups"
)
// String converts an hypervisor type to a string.
// String converts a resource type to a string.
func (rType *ResourceControllerType) String() string {
switch *rType {
case LinuxCgroups: