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
a77df3fe52
commit
717dc11d6d
@ -23,17 +23,17 @@ try {
|
||||
}
|
||||
|
||||
if ($Temp -gt 80) {
|
||||
$Reply = "⚠️ CPU has $Temp °C: too high!"
|
||||
$Reply = "CPU has $Temp °C: too high!"
|
||||
} elseif ($Temp -gt 50) {
|
||||
$Reply = "✔️ CPU has $Temp °C: quite high"
|
||||
$Reply = "CPU has $Temp °C: quite high"
|
||||
} elseif ($Temp -gt 0) {
|
||||
$Reply = "✔️ CPU has $Temp °C"
|
||||
$Reply = "CPU has $Temp °C"
|
||||
} elseif ($Temp -gt -20) {
|
||||
$Reply = "✔️ CPU has $Temp °C: quite low"
|
||||
$Reply = "CPU has $Temp °C: quite low"
|
||||
} else {
|
||||
$Reply = "⚠️ CPU has $Temp °C: too low!"
|
||||
$Reply = "CPU has $Temp °C: too low!"
|
||||
}
|
||||
"$Reply"
|
||||
"✔️ $Reply"
|
||||
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
|
Loading…
Reference in New Issue
Block a user