WMI and 2 decimal places

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
mrfrosty
Posts: 21
Joined: Thu Feb 14, 2008 3:20 am

WMI and 2 decimal places

Post by mrfrosty »

Hello,

I'm starting to re-configure all of our tests that use performance counters, with WMI tests instead, however I'm stuck with trying to figure out how to get some of the test results to display in 2 decimal places.

For example one of the tests we use is the Avg. Disk/sec transfer performance counter which returns a value such as 0.02, how do we accomplish the same test using WMI as everytime I use it, it returns 0?


Marcus
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

As I see HostMonitor should be able to work with real numbers (if WMI Query returns real number of course).
What exactly WMI Query do you use? HostMonitor version?

Regards
Alex
mrfrosty
Posts: 21
Joined: Thu Feb 14, 2008 3:20 am

Post by mrfrosty »

Alex,

Using version 7.22c, and have tried the queries:

select PercentProcessorTime from Win32_PerfFormattedData_PerfOS_Processor

select AvgDiskSecPerTransfer from Win32_PerfFormattedData_PerfDisk_LogicalDisk

select AvailableMBytes from Win32_PerfFormattedData_PerfOS_Memory

Looking in WMI Explorer this also doesn't display real numbers, all return an int type value.

Marcus
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Post Reply