XxInvictus
HHASS.Agent
•Created by XxInvictus on 2/6/2024 in #💬・get-help
Arithmetic with WMI Command Type?
Anyone know if there is a way to do arithmetic with WMI type command or is it just plain WMI? I could technically use Powershell just trying to avoid adding an extra layer of abstraction.
For context, I am trying to solve the issue of Windows not properly reporting CPU usage, from taking a look at the data available in
Win32_PerfFormattedData_PerfOS_Processor
even though the usage isn't always accurate from my observation the Idle time does seem to be, which means I should be able to abstract the Usage % by using 100 - PercentIdleTIme
. Again, I could technically also do this within HA just sending it the straight Idle time, just extra steps for the same goal 🙂18 replies