trans: fix the issue of wrong swapness type

Signed-off-by: Fupan Li <fupan.lfp@antgroup.com>
This commit is contained in:
Fupan Li 2022-06-10 19:46:25 +08:00
parent d2a9bc6674
commit 69ba1ae9e4

View File

@ -515,7 +515,7 @@ impl From<crate::oci::LinuxMemory> for oci::LinuxMemory {
let mut swappiness = None;
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());