Hi, I am using the IPerfmon module to (successfully) retrieve several performace counters from the registry, but whenever I try to retrieve \\\\Host\\Processor(0)\\% Processor Time or \\\\Host\\Processor(_Total)\\% Processor Time I always get a returned value of 99, but the values I see in Perfmon are much less. My machine is single processor - P733 - I can't believe that this is causing a spike up to 99% Has anyone any ideas? The code I am running is below, Many Thanks Neil use Win32::IPerfmon qw( PDH_FMT_LARGE PDH_FMT_LONG PDH_FMT_DOUBLE SINGLE_COUNTER_PER_DIALOG ); my $Query1=new Win32::IPerfmon::Query; my $PathObject1="\\\\Host\\Processor(0)\\\% Processor Time"; $Query1->Open(); $Query1->AddCounter($PathObject1,\$Counter1); $Query1->CollectData(); $Query1->GetFormattedValue($Counter1,PDH_FMT_LARGE,\$ReturnedValue); print "Processor Time: $ReturnedValue\n"; $Query1->Close(); ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
