mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-09 18:19:32 +02:00
Update check-cpu.ps1
This commit is contained in:
parent
be5ef1b745
commit
5746609a35
@ -23,15 +23,15 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($Temp -gt 80) {
|
if ($Temp -gt 80) {
|
||||||
$Reply = "$($Temp)°C CPU temperature, that's too high!"
|
$Reply = "CPU is $($Temp)°C extremely hot!"
|
||||||
} elseif ($Temp -gt 50) {
|
} elseif ($Temp -gt 50) {
|
||||||
$Reply = "$($Temp)°C CPU temperature, that's quite high"
|
$Reply = "CPU is $($Temp)°C hot."
|
||||||
} elseif ($Temp -gt 0) {
|
} elseif ($Temp -gt 0) {
|
||||||
$Reply = "$($Temp)°C CPU temperature"
|
$Reply = "CPU is $($Temp)°C warm."
|
||||||
} elseif ($Temp -gt -20) {
|
} elseif ($Temp -gt -20) {
|
||||||
$Reply = "$($Temp)°C CPU temperature, that's quite low"
|
$Reply = "CPU is $($Temp)°C cold."
|
||||||
} else {
|
} else {
|
||||||
$Reply = "$($Temp)°C CPU temperature, that's too low!"
|
$Reply = "CPU is $($Temp)°C extremely cold!"
|
||||||
}
|
}
|
||||||
|
|
||||||
& "$PSScriptRoot/give-reply.ps1" "$Reply"
|
& "$PSScriptRoot/give-reply.ps1" "$Reply"
|
||||||
|
Loading…
Reference in New Issue
Block a user