Subject: | Broken on Windows Server 2008 R2 |
I tested this on my local machine, Windows XP SP3. When I tested on a
Windows 2008 R2 server it returned -1 really fast.
I downloaded the module, compiled the visual studio solution in release
which prints the current CPU. This exhibited the same exact problem.
Seems like something is not working with the windows API or the C program.
I got around issue by using Win32::PerfLib but that module is not as
good because there is something like a 2~4 second lag time to get the
results, this solution is much faster.
perl -v on the troublesome server is:
v5.10.1 build for MSWin32-x86-multi-thread