mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-22 16:03:22 +01:00
Update check-cpu.ps1
This commit is contained in:
parent
be5ef1b745
commit
5746609a35
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user