/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Matthew Fuller
  • Date: 2009-06-05 09:13:02 UTC
  • mto: This revision was merged to the branch mainline in revision 4414.
  • Revision ID: fullermd@over-yonder.net-20090605091302-tdw4zqpuv1n0dxl5
Catch the number of cores on FreeBSD too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1841
1841
    def _local_concurrency():
1842
1842
        return subprocess.Popen(['sysctl', '-n', 'hw.availcpu'],
1843
1843
                                stdout=subprocess.PIPE).communicate()[0]
 
1844
elif sys.platform[0:7] == 'freebsd':
 
1845
    def _local_concurrency():
 
1846
        return subprocess.Popen(['sysctl', '-n', 'hw.ncpu'],
 
1847
                                stdout=subprocess.PIPE).communicate()[0]
1844
1848
elif sys.platform == 'sunos5':
1845
1849
    def _local_concurrency():
1846
1850
        return subprocess.Popen(['psrinfo', '-p',],