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
WMI and 2 decimal places
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
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
Everythink is correct. These counters represented by integer numbers.
Quotes from Microsoft
http://msdn.microsoft.com/en-us/library ... S.85).aspx
http://msdn.microsoft.com/en-us/library ... S.85).aspx
http://msdn.microsoft.com/en-us/library ... S.85).aspx
Regards
Alex
Quotes from Microsoft
http://msdn.microsoft.com/en-us/library ... S.85).aspx
http://msdn.microsoft.com/en-us/library ... S.85).aspx
http://msdn.microsoft.com/en-us/library ... S.85).aspx
Regards
Alex