Fix rounding

This commit is contained in:
Markus Fleschutz 2021-05-20 11:55:22 +02:00
parent e168150f2a
commit 33d725ceb3

View File

@ -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") {