does this stop url format blocking?

This commit is contained in:
Mark Nadal 2020-09-26 02:41:56 -07:00
parent e56ebf7dea
commit 45e2bcc1c2
2 changed files with 6 additions and 3 deletions

View File

@ -88,7 +88,8 @@
}
});
}
setInterval(fetchData, 15 * 1000);
//setInterval(fetchData, 15 * 1000);
setInterval(fetchData, 1000);
fetchData();
function Stats(key, chart){

View File

@ -47,6 +47,7 @@ Gun.on('opt', function(root){
stats.node = {};
stats.node.count = Object.keys(root.graph||{}).length; // TODO: .keys( is slow
stats.all = all;
all = {}; // will this cause missing stats?
var dam = root.opt.mesh;
if(dam){
stats.dam = {'in': {count: dam.hear.c, done: dam.hear.d}, 'out': {count: dam.say.c, done: dam.say.d}};
@ -66,8 +67,9 @@ Gun.on('opt', function(root){
stats.over = S;
stats.gap = {};
exec("top -b -n 1", function(err, out){ out && fs.writeFile(__dirname+'/../stats.top.'+(root.opt.file||file), out, noop) });
}, 1000 * 15);
//exec("top -b -n 1", function(err, out){ out && fs.writeFile(__dirname+'/../stats.top.'+(root.opt.file||file), out, noop) }); // was it really seriously actually this?
//}, 1000 * 15);
}, 1000 * 1);
});
var exec = require("child_process").exec, noop = function(){};