mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +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;
|
||||
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());
|
||||
|
Loading…
Reference in New Issue
Block a user