From ddba87529b235687f3c05c4870dac910f4c1c6d7 Mon Sep 17 00:00:00 2001 From: TheDreWen Date: Mon, 9 Mar 2026 08:23:51 +0100 Subject: [PATCH] Update log output format to include 'Total Ping' in uptime monitoring --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b68ee9d..eb7bd54 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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}); } }