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