Update check-cpu.ps1

This commit is contained in:
Markus Fleschutz 2021-12-08 17:08:01 +01:00
parent be5ef1b745
commit 5746609a35

View File

@ -23,15 +23,15 @@ try {
}
if ($Temp -gt 80) {
$Reply = "$($Temp)°C CPU temperature, that's too high!"
$Reply = "CPU is $($Temp)°C extremely hot!"
} elseif ($Temp -gt 50) {
$Reply = "$($Temp)°C CPU temperature, that's quite high"
$Reply = "CPU is $($Temp)°C hot."
} elseif ($Temp -gt 0) {
$Reply = "$($Temp)°C CPU temperature"
$Reply = "CPU is $($Temp)°C warm."
} elseif ($Temp -gt -20) {
$Reply = "$($Temp)°C CPU temperature, that's quite low"
$Reply = "CPU is $($Temp)°C cold."
} else {
$Reply = "$($Temp)°C CPU temperature, that's too low!"
$Reply = "CPU is $($Temp)°C extremely cold!"
}
& "$PSScriptRoot/give-reply.ps1" "$Reply"