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