Skip to content

Commit 75887f3

Browse files
committed
memory: Fix test_procs_iterator_cgroup test
Otherwise it simply breaks. Signed-off-by: Alex Man <[email protected]> Signed-off-by: Fabiano Fidêncio <[email protected]>
1 parent 1b4a126 commit 75887f3

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
@@ -745,7 +745,7 @@ impl MemController {
745745
.open_path("memory.swap.events", false)
746746
.and_then(flat_keyed_to_hashmap)
747747
.map(|x| *x.get("fail").unwrap_or(&0) as u64)
748-
.unwrap(),
748+
.unwrap_or(0),
749749
limit_in_bytes: self
750750
.open_path("memory.swap.max", false)
751751
.and_then(read_i64_from)

0 commit comments

Comments
 (0)