From 095688b8e862f9f0e58e2e21e3d038cb23269933 Mon Sep 17 00:00:00 2001 From: Mark Nadal Date: Sat, 19 Sep 2020 15:15:29 -0700 Subject: [PATCH] tweak --- lib/stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stats.js b/lib/stats.js index 6de79476..161e8ca7 100644 --- a/lib/stats.js +++ b/lib/stats.js @@ -60,7 +60,7 @@ Gun.on('opt', function(root){ } console.STAT && console.STAT(S, +new Date - S, 'stats'); S = +new Date; - JSON.stringifyAsync(stats, function(err, raw){ console.log("stats?", err, __dirname+'/../stats.'+(root.opt.file||file)); if(err){ return } + JSON.stringifyAsync(stats, function(err, raw){ if(err){ return } fs.writeFile(__dirname+'/../stats.'+(root.opt.file||file), raw, function(err){ console.STAT && console.STAT(S, +new Date - S, 'stats stash') }); }); stats.over = S;