Update some check-*.ps1 scripts

This commit is contained in:
Markus Fleschutz
2022-10-09 19:16:32 +02:00
parent 888e0a5408
commit 945914a326
4 changed files with 24 additions and 24 deletions

View File

@ -22,15 +22,15 @@ try {
$Temp = [math]::round($Temp / 100.0, 1)
}
if ($Temp -gt 80) {
$Reply = "⚠️ CPU has $($Temp)°C - too hot!"
$Reply = "⚠️ CPU is too hot at $($Temp)°C!"
} elseif ($Temp -gt 50) {
$Reply = "✅ CPU has $($Temp)°C - hot."
$Reply = "✅ CPU is $($Temp)°C hot."
} elseif ($Temp -gt 0) {
$Reply = "✅ CPU has $($Temp)°C - warm."
$Reply = "✅ CPU is $($Temp)°C warm."
} elseif ($Temp -gt -20) {
$Reply = "✅ CPU has $($Temp)°C - cold."
$Reply = "✅ CPU is $($Temp)°C cold."
} else {
$Reply = "⚠️ CPU has $($Temp)°C - too cold!"
$Reply = "⚠️ CPU is too cold at $($Temp)°C!"
}
"$Reply"
exit 0 # success