Skip to content
Snippets Groups Projects
Commit 526ad7f5 authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

monitor.js escribe en status

parent 64f99d23
No related branches found
No related tags found
No related merge requests found
...@@ -26,10 +26,12 @@ function monitor() ...@@ -26,10 +26,12 @@ function monitor()
} }
} }
); );
console.log( bfa.fs.writeFileSync(
bfa.networkdir + '/status',
"UTC: " + now.toUTCString() + "\n" "UTC: " + now.toUTCString() + "\n"
+ "BFA peers: " + peers.length + "\n" + "BFA peers: " + peers.length + "\n"
+ peers.sort().join("\n") + peers.sort().join("\n") + "\n",
{ mode: 0o644 }
); );
}, },
function(x) function(x)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment