This commit is contained in:
2016-04-30 23:31:17 -04:00
parent 2fc8276634
commit 2a6cce6296

View File

@ -28,9 +28,7 @@ function sysExec(command, callback){
var getFreeMem = function(callback){
return sysExec("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))\"", function(data) {
return parseFree(data, callback);
});
return sysExec("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))\"", callback);
};