My take on it is that if your values for the counter data X1 was stored
at
$Objlist1->{Objects}->{$physicaldiskIndexnumber}->{Instances}->
{$InstanceNumber}->{Counters}->{$avgDiskSecTransferIndexNumber}->{Counter},
then you would add 1 to the $avgDiskSecTransferIndexNumber to get the
data for B1. The base is stored in the object immediately following the
statistic you want for this data type.... If I'm reading the MSDN
correctly.
"Shea, Linchi"
<[EMAIL PROTECTED]> To:
"Perl-Win32-Admin@Listserv. Activestate. Com
Sent by: (E-mail)"
[EMAIL PROTECTED]
<[EMAIL PROTECTED]>
eState.com cc:
Subject:
Win32::PerfLib -- PERF_AVERAGE_TIMER
03/13/2001 02:16 PM
I'm trying to figure out how to calculate the value for counter Physical
Disk: Avg. Disk sec/Transfer. Its type is PERF_AVERAGE_TIMER, and the
formula is ((X1-X0) / TB) / (B1-B0). My interpretation of the
documentation is that X1 and X0 are the counter data (number of ticks), TB
is PerfFreq (frequency of ticks) which is 10,000,000 in this case. Then,
B1-B0 should be number of operations (i.e. transfers) completed during the
last sample interval. Now, where do I get B1 and B0 in terms of
Win32::PerfLib data structure?
Linchi
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin