From ffccb6175a139a981f5f9470d88848c52cf374bb Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 4 Sep 2024 19:08:23 +0200 Subject: [PATCH] Updated check-cpu.ps1 --- scripts/check-cpu.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/check-cpu.ps1 b/scripts/check-cpu.ps1 index 142c1069..5f1052e5 100755 --- a/scripts/check-cpu.ps1 +++ b/scripts/check-cpu.ps1 @@ -63,11 +63,14 @@ try { $celsius = GetCPUTemperature if ($celsius -eq 99999.9) { $temp = "no temp" + } elseif ($celsius -gt 80) { + $temp = "$($celsius)°C TOO HOT" + $status = "⚠️" } elseif ($celsius -gt 50) { $temp = "$($celsius)°C HOT" $status = "⚠️" } elseif ($celsius -lt 0) { - $temp = "$($celsius)°C COLD" + $temp = "$($celsius)°C TOO COLD" $status = "⚠️" } else { $temp = "$($celsius)°C OK"