mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-12 17:08:23 +01:00
Fix rounding
This commit is contained in:
parent
e168150f2a
commit
33d725ceb3
@ -12,7 +12,7 @@ try {
|
||||
} else {
|
||||
$data = Get-WMIObject -Query "SELECT * FROM Win32_PerfFormattedData_Counters_ThermalZoneInformation" -Namespace "root/CIMV2"
|
||||
$Temp = @($data)[0].HighPrecisionTemperature
|
||||
$Temp = [math]::round($Temp / 1000.0, 1)
|
||||
$Temp = [math]::round($Temp / 100.0, 1)
|
||||
}
|
||||
|
||||
if ($Temp -gt "80") {
|
||||
|
Loading…
Reference in New Issue
Block a user