mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
revert argv2
This commit is contained in:
parent
9ac94db8b3
commit
203a80a430
@ -19,7 +19,6 @@ Gun.on('opt', function(root){
|
||||
os.loadavg = os.loadavg || noop;
|
||||
os.cpus = os.cpus || noop;
|
||||
setTimeout(function(){
|
||||
root.opt.file += (process.argv[2]||'');
|
||||
root.stats = Gun.obj.ify((fs.existsSync(__dirname+'/../stats.'+root.opt.file) && fs.readFileSync(__dirname+'/../stats.'+root.opt.file).toString())) || {};
|
||||
root.stats.up = root.stats.up || {};
|
||||
root.stats.up.start = root.stats.up.start || +(new Date);
|
||||
@ -56,4 +55,4 @@ Gun.on('opt', function(root){
|
||||
stats.gap = {};
|
||||
}, 1000 * 15);
|
||||
Object.keys = Object.keys || function(o){ return Gun.obj.map(o, function(v,k,t){t(k)}) }
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user