mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
memory: Fix test_procs_iterator_cgroup test
Otherwise it simply breaks. Signed-off-by: Alex Man <alexman@stripe.com> Signed-off-by: Fabiano Fidêncio <fidencio@northflank.com>
This commit is contained in:
+1
-1
@@ -745,7 +745,7 @@ impl MemController {
|
|||||||
.open_path("memory.swap.events", false)
|
.open_path("memory.swap.events", false)
|
||||||
.and_then(flat_keyed_to_hashmap)
|
.and_then(flat_keyed_to_hashmap)
|
||||||
.map(|x| *x.get("fail").unwrap_or(&0) as u64)
|
.map(|x| *x.get("fail").unwrap_or(&0) as u64)
|
||||||
.unwrap(),
|
.unwrap_or(0),
|
||||||
limit_in_bytes: self
|
limit_in_bytes: self
|
||||||
.open_path("memory.swap.max", false)
|
.open_path("memory.swap.max", false)
|
||||||
.and_then(read_i64_from)
|
.and_then(read_i64_from)
|
||||||
|
|||||||
Reference in New Issue
Block a user