leeej84 / -DEPRECATED---PowerScale

Replacement for Citrix SmartScale
GNU General Public License v3.0
16 stars 11 forks source link

fix on CPU load query for multi Socket Server #7

Closed mrieder closed 4 years ago

mrieder commented 4 years ago

On Servers configured with multiple sockets The "Get-CimInstance -CimSession $cimSession -ClassName CIM_Processor" returns the metrics for each CPU Socket. 2019-12-03_12h14_20

This results on an array for the CPU Property in the $metric variable. 2019-12-03_10h14_13

Changed the query the make the average for all sockets.

leeej84 commented 4 years ago

Nice work dude, thank you for the added fix.