mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 20:54:26 +00:00
trans: fix the issue of wrong swapness type
Signed-off-by: Fupan Li <fupan.lfp@antgroup.com>
This commit is contained in:
parent
d2a9bc6674
commit
69ba1ae9e4
@ -515,7 +515,7 @@ impl From<crate::oci::LinuxMemory> for oci::LinuxMemory {
|
|||||||
|
|
||||||
let mut swappiness = None;
|
let mut swappiness = None;
|
||||||
if from.get_Swappiness() > 0 {
|
if from.get_Swappiness() > 0 {
|
||||||
swappiness = Some(from.get_Swappiness() as i64);
|
swappiness = Some(from.get_Swappiness());
|
||||||
}
|
}
|
||||||
|
|
||||||
let disable_oom_killer = Some(from.get_DisableOOMKiller());
|
let disable_oom_killer = Some(from.get_DisableOOMKiller());
|
||||||
|
Loading…
Reference in New Issue
Block a user