mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
does this stop url format blocking?
This commit is contained in:
parent
e56ebf7dea
commit
45e2bcc1c2
@ -88,7 +88,8 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
setInterval(fetchData, 15 * 1000);
|
||||
//setInterval(fetchData, 15 * 1000);
|
||||
setInterval(fetchData, 1000);
|
||||
fetchData();
|
||||
|
||||
function Stats(key, chart){
|
||||
|
@ -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(){};
|
||||
|
Loading…
x
Reference in New Issue
Block a user