From 362373b3ec3de239c4c3efdff842e5d1cee650de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Wed, 28 May 2025 22:40:56 +0200 Subject: [PATCH] memory: Fix test_procs_iterator_cgroup test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise it simply breaks. Signed-off-by: Alex Man Signed-off-by: Fabiano FidĂȘncio --- src/memory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memory.rs b/src/memory.rs index 831fc07..c5382cc 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -745,7 +745,7 @@ impl MemController { .open_path("memory.swap.events", false) .and_then(flat_keyed_to_hashmap) .map(|x| *x.get("fail").unwrap_or(&0) as u64) - .unwrap(), + .unwrap_or(0), limit_in_bytes: self .open_path("memory.swap.max", false) .and_then(read_i64_from)