undo temporary test

This commit is contained in:
Mark Nadal 2020-02-21 23:53:02 -08:00
parent 5bf425d2c4
commit 105d81f7a6

View File

@ -57,13 +57,8 @@ Gun.on('opt', function(root){
}
console.STAT && console.STAT(S, +new Date - S, 'stats');
S = +new Date;
//fs.writeFile(__dirname+'/../stats.'+root.opt.file, JSON.stringify(stats, null, 2), function(err){ console.STAT && console.STAT(S, +new Date - S, 'stats stash') });
// TEMPORARY TEST TO SEE HOW SLOW/FAST FS IS!!!
fs.writeFileSync(__dirname+'/../stats.'+root.opt.file, JSON.stringify(stats, null, 2));
console.log("[[[[[[[[[[", +new Date - S, "]]]]]]]]]]");
// TEMPORARY TEST TO SEE HOW SLOW/FAST FS IS!!!
console.STAT && console.STAT(S, +new Date - S, 'stats stash');
stats.over = +new Date;
fs.writeFile(__dirname+'/../stats.'+root.opt.file, JSON.stringify(stats, null, 2), function(err){ console.STAT && console.STAT(S, +new Date - S, 'stats stash') });
stats.over = S;
stats.gap = {};
}, 1000 * 15);
Object.keys = Object.keys || function(o){ return Gun.obj.map(o, function(v,k,t){t(k)}) }