Skip to content

Commit

Permalink
some formating
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Brüser committed Nov 26, 2023
1 parent 21f5090 commit 9badeb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9badeb8

Please sign in to comment.