From 78230b55fcabe646f4998b800487a284e059e228 Mon Sep 17 00:00:00 2001 From: JBg Date: Thu, 20 Mar 2025 09:15:54 +0100 Subject: [PATCH] Replaced special characters with ASCII --- Ping_Monitor.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Ping_Monitor.ps1 b/Ping_Monitor.ps1 index 9ec76cc..4f5d7c1 100644 --- a/Ping_Monitor.ps1 +++ b/Ping_Monitor.ps1 @@ -337,8 +337,8 @@ try { Write-PingDataLog -Address $addr -Status $status -ResponseTime $responseTime -SuccessRate $successRate } - # Calculate trend more efficiently - $trend = "━" # Default to neutral + # Calculate trend more efficiently - FIXED: Using ASCII characters instead of Unicode + $trend = "-" # Default to neutral (horizontal line) if ($stats[$addr].SampleCount -ge 5) { $samples = $stats[$addr].SampleArray $count = $stats[$addr].SampleCount @@ -354,11 +354,11 @@ try { $slope = $last - $first if ([Math]::Abs($slope) -lt 5) { - $trend = "━" + $trend = "-" # Neutral } elseif ($slope -lt 0) { - $trend = "↓" + $trend = "v" # Down arrow } else { - $trend = "↑" + $trend = "^" # Up arrow } }