diff --git a/bin/monitor.js b/bin/monitor.js index af6a5e1f442a166fa5aba93d37fd111af6c47380..0d5eaa0331bc5bce0b61f19ce673992bd296529c 100755 --- a/bin/monitor.js +++ b/bin/monitor.js @@ -26,10 +26,12 @@ function monitor() } } ); - console.log( + bfa.fs.writeFileSync( + bfa.networkdir + '/status', "UTC: " + now.toUTCString() + "\n" - + "BFA peers: " + peers.length + "\n" - + peers.sort().join("\n") + + "BFA peers: " + peers.length + "\n" + + peers.sort().join("\n") + "\n", + { mode: 0o644 } ); }, function(x)