Skip to content

Commit

Permalink
revert: cgroup-rs version
Browse files Browse the repository at this point in the history
  • Loading branch information
kulukami committed Dec 17, 2024
1 parent 57dfb53 commit 51b8da8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/scanner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ libc = "0.2"

fs2 = "0.4.3"

cgroups-rs = "0.3"
cgroups-rs = "0.2"

zip = { version = "2.2" }

Expand Down
4 changes: 2 additions & 2 deletions plugins/scanner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ pub fn setup_cgroup(pid: u32, mem: i64, cpu: i64) -> Result<()> {
.cpu()
.quota(cpu) // n / MAX 100 000 = x% CPU
.done()
.build(hier1)?;
.build(hier1);

scanner_cg.add_task(cgroups_rs::CgroupPid::from(pid as u64))?;
scanner_cg.add_task(cgroups_rs::CgroupPid::from(pid as u64));
return Ok(());
}

Expand Down

0 comments on commit 51b8da8

Please sign in to comment.