Skip to content

Commit 3cccfc8

Browse files
committed
memory: Fix test_procs_iterator_cgroup test
Otherwise it simply breaks. Signed-off-by: Fabiano Fidêncio <[email protected]>
1 parent abd9be4 commit 3cccfc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ impl MemController {
744744
.open_path("memory.swap.events", false)
745745
.and_then(flat_keyed_to_hashmap)
746746
.map(|x| *x.get("fail").unwrap_or(&0) as u64)
747-
.unwrap(),
747+
.unwrap_or(0),
748748
limit_in_bytes: self
749749
.open_path("memory.swap.max", false)
750750
.and_then(read_i64_from)

0 commit comments

Comments
 (0)