updated script and healthService error
This commit is contained in:
parent
bc66822c8b
commit
2c11acaeca
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@debros/node",
|
"name": "@debros/node",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.0.17-alpha",
|
"version": "0.0.18-alpha",
|
||||||
"description": "DeBros Node",
|
"description": "DeBros Node",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"bin": "dist/cli.js",
|
"bin": "dist/cli.js",
|
||||||
|
@ -422,7 +422,6 @@ log "${CYAN}please rerun this script after rebooting to finish the installation.
|
|||||||
log "${BLUE}==================================================${NOCOLOR}"
|
log "${BLUE}==================================================${NOCOLOR}"
|
||||||
|
|
||||||
# Information about the DeBros CLI
|
# Information about the DeBros CLI
|
||||||
log "${BLUE}==================================================${NOCOLOR}"
|
|
||||||
log "${GREEN}DeBros CLI Information:${NOCOLOR}"
|
log "${GREEN}DeBros CLI Information:${NOCOLOR}"
|
||||||
log "${CYAN}The DeBros CLI is a tool that runs on your local development machine,${NOCOLOR}"
|
log "${CYAN}The DeBros CLI is a tool that runs on your local development machine,${NOCOLOR}"
|
||||||
log "${CYAN}not on the node itself. To install it on your development machine, run:${NOCOLOR}"
|
log "${CYAN}not on the node itself. To install it on your development machine, run:${NOCOLOR}"
|
||||||
|
@ -42,7 +42,7 @@ export const startStatusReporting = (interval = 600000) => {
|
|||||||
console.log('CONNECTED PEERS:');
|
console.log('CONNECTED PEERS:');
|
||||||
connectedPeers.forEach((peer, i) => {
|
connectedPeers.forEach((peer, i) => {
|
||||||
// Adjust based on your peer structure from the new @debros/network
|
// Adjust based on your peer structure from the new @debros/network
|
||||||
const peerId = peer.id || peer.toString();
|
const peerId = peer.fingerprint || peer.toString();
|
||||||
const load = peer.load || 'unknown';
|
const load = peer.load || 'unknown';
|
||||||
console.log(`${i + 1}. ${peerId.substring(0, 15)}... - Load: ${load}%`);
|
console.log(`${i + 1}. ${peerId.substring(0, 15)}... - Load: ${load}%`);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user