From 176a601857e6874add2913545c26681b64bc8c3e Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Tue, 30 Jul 2019 13:26:39 +0200 Subject: [PATCH] Fix int --- wo/cli/plugins/stack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wo/cli/plugins/stack.py b/wo/cli/plugins/stack.py index b0ff144..21d8395 100644 --- a/wo/cli/plugins/stack.py +++ b/wo/cli/plugins/stack.py @@ -1709,9 +1709,9 @@ class WOStackController(CementBaseController): if (apt_packages): meminfo = (os.popen('cat /proc/meminfo ' '| grep MemTotal').read()).split(" ") - memsplit = (meminfo[1]).split(" ") + memsplit = re.split(" ", meminfo[1]) wo_mem = int(memsplit[0]) - if wo_mem < 4000000: + if (wo_mem < 4000000): WOSwap.add(self) Log.info(self, "Updating apt-cache, please wait...") WOAptGet.update(self)