This commit is contained in:
VirtuBox
2019-07-30 13:42:17 +02:00
parent 1d9156e99a
commit e1068b4191

View File

@@ -1707,9 +1707,9 @@ class WOStackController(CementBaseController):
self.pre_pref(apt_packages)
if (apt_packages):
meminfo = (os.popen('cat /proc/meminfo '
'| grep MemTotal').read()).split(" ")
memsplit = re.split(" ", meminfo[1])
wo_mem = int(float(memsplit[0]))
'| grep MemTotal').read()).split(":")
memsplit = re.split(" kB", meminfo[1])
wo_mem = int(list(memsplit[0]))
if (wo_mem < 4000000):
WOSwap.add(self)
Log.info(self, "Updating apt-cache, please wait...")