Skip to content

Cgroup v2 set cpu period report error invalid format: max 100000 0 #151

@adfxj

Description

@adfxj

Describe the bug
Cgroup v2 set cpu period report error invalid format; max 100000 0

Expected behavior
change value successfully

Additional context
The code report error is here

fn parse_cfs_quota_and_period(mut file: File) -> Result {
...
if fields.len() != 2 {
return Err(Error::from_string(format!("invaild format: {}", content)));
}
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions