load stuff
This commit is contained in:
parent
d452250126
commit
2f8cf5c120
@ -172,9 +172,10 @@ router.post('/run/:ip?', function doRun(req, res, next){
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// freeMem: 97700 totalmem 513818624 usedMem: 0
|
||||||
var startAll = function(){
|
var startAll = function(){
|
||||||
getFreeMem(function(freeMem){
|
getFreeMem(function(freeMem){
|
||||||
var usedMem = Math.round((freeMem/totalMem)*100);
|
var usedMem = Math.round(((totalMem-freeMem)/totalMem)*100);
|
||||||
console.log('freeMem:', freeMem, 'totalmem', totalMem, 'usedMem:', usedMem);
|
console.log('freeMem:', freeMem, 'totalmem', totalMem, 'usedMem:', usedMem);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user