Updated check-cpu.ps1

This commit is contained in:
Markus Fleschutz 2024-09-04 19:08:23 +02:00
parent 8abd390290
commit ffccb6175a

View File

@ -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"