Skip to content

Commit

Permalink
Merge pull request #113 from utam0k/mem-check-before-update
Browse files Browse the repository at this point in the history
rutime: Add a check_before_update field support
  • Loading branch information
saschagrunert authored Sep 12, 2022
2 parents 61d6849 + f9d8c14 commit 987a296
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/runtime/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ pub struct LinuxMemory {
#[serde(skip_serializing_if = "Option::is_none")]
/// Enables hierarchical memory accounting
use_hierarchy: Option<bool>,

#[serde(skip_serializing_if = "Option::is_none")]
/// Enables checking if a new memory limit is lower
check_before_update: Option<bool>,
}

#[derive(
Expand Down Expand Up @@ -1345,6 +1349,7 @@ impl Arbitrary for LinuxMemory {
swappiness: some_none_generator_util::<u64>(g),
disable_oom_killer: some_none_generator_util::<bool>(g),
use_hierarchy: some_none_generator_util::<bool>(g),
check_before_update: some_none_generator_util::<bool>(g),
}
}
}
Expand Down

0 comments on commit 987a296

Please sign in to comment.