Update log output format to include 'Total Ping' in uptime monitoring
This commit is contained in:
@@ -34,7 +34,7 @@ class Uptime {
|
||||
});
|
||||
}
|
||||
|
||||
process.stdout.write(`[${now.toLocaleDateString()} ${now.toLocaleTimeString()}] Total: ${this.totalIte} Up: ${this.totalUp} Down: ${this.totalDown} Uptime: ${Math.round((this.totalUp / this.totalIte) * 100)}%\r`)
|
||||
process.stdout.write(`[${now.toLocaleDateString()} ${now.toLocaleTimeString()}] Total Ping: ${this.totalIte} | Up: ${this.totalUp} | Down: ${this.totalDown} | Uptime: ${Math.round((this.totalUp / this.totalIte) * 100)}%\r`)
|
||||
}, {timeout: 10});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user