Skip Menu |

This queue is for tickets about the Data-DPath CPAN distribution.

Report information
The Basics
Id: 69042
Status: resolved
Priority: 0/
Queue: Data-DPath

People
Owner: Nobody in particular
Requestors: RUSSOZ [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.44
Fixed in: (no value)



Subject: use module Sys::CPU to figure # of processors
There is a Linux-specific code (with a failover case, ok, but nonetheless) in Data::DPath, trying to figure out the number of processors available in a system. Instead of trying to open /proc/cpuinfo manually, I suggest you use the module Sys::CPU:

http://search.cpan.org/~mkoderer/Sys-CPU-0.52/CPU.pm

It seems to do exactly what you intended.

Cheers,
Alexei
On Thu Jun 23 00:22:48 2011, RUSSOZ wrote: Show quoted text
> I suggest you use the module Sys::CPU
Thanks, fixed in git. Keeping ticket open until next CPAN release. Kind regards, Steffen -- Steffen Schwigon <ss5@renormalist.net> Dresden Perl Mongers <http://dresden-pm.org/>
Fixed in Data-DPath v0.46. I adapted the Sys::CPU but commented it out completely for now as it is not used anyway. Regards, Steffen -- Steffen Schwigon <ss5@renormalist.net> Dresden Perl Mongers <http://dresden-pm.org/>