This commit is contained in:
William Mantly 2016-05-05 00:20:05 -04:00
parent 2e21a7d91b
commit 18cbb5536b

View File

@ -19,7 +19,7 @@ var workers = {
var getFreeMem = function(ip, callback){
return lxc.sysExec(
return lxc.exec(
"python3 -c \"a=`head /proc/meminfo|grep MemAvail|grep -Po '\d+'`;t=`head /proc/meminfo|grep MemTotal|grep -Po '\d+'`;print(round(((t-a)/t)*100, 2))\"",
ip,
callback