[python-win32] win32pdhutil Processor Time always returns 99

Martin Beckett martin at datactics.co.uk
Fri Dec 12 14:24:29 EST 2003


I am trying to get the % CPU load in python on win32

win32pdhutil.GetPerformanceAttributes("Processor(_Total)","% Processor 
Time")
only ever returns 99 whatever the machine load ?

Running on Windows XP-pro + ActivePython 2.3.2 Build 231

   Any ideas ?




More information about the Python-win32 mailing list