From 9badeb83f9e8bdd2928c1f76c0f342f254b474e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tony=20Bru=CC=88ser?= Date: Sun, 26 Nov 2023 15:19:28 +0100 Subject: [PATCH] some formating --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 2b55211..772effc 100644 --- a/script.js +++ b/script.js @@ -32,7 +32,7 @@ function addHistoryEntry(column, data) { const pingColor = data.ping > 500 ? Color.red() : (data.ping > 200 ? Color.yellow() : Color.green()); const formattedDate = new Date(data.timestamp).toLocaleString(); // Datum im lokalen Format - let historyText = column.addText(`Ping: ${data.ping} ms at ${formattedDate}`); + let historyText = column.addText(`${data.ping} (${formattedDate})`); historyText.textColor = pingColor; historyText.font = Font.systemFont(10); }