mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-27 00:58:51 +01:00
Updated check-cpu.ps1
This commit is contained in:
parent
8abd390290
commit
ffccb6175a
@ -63,11 +63,14 @@ try {
|
||||
$celsius = GetCPUTemperature
|
||||
if ($celsius -eq 99999.9) {
|
||||
$temp = "no temp"
|
||||
} elseif ($celsius -gt 80) {
|
||||
$temp = "$($celsius)°C TOO HOT"
|
||||
$status = "⚠️"
|
||||
} elseif ($celsius -gt 50) {
|
||||
$temp = "$($celsius)°C HOT"
|
||||
$status = "⚠️"
|
||||
} elseif ($celsius -lt 0) {
|
||||
$temp = "$($celsius)°C COLD"
|
||||
$temp = "$($celsius)°C TOO COLD"
|
||||
$status = "⚠️"
|
||||
} else {
|
||||
$temp = "$($celsius)°C OK"
|
||||
|
Loading…
Reference in New Issue
Block a user