-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
Ì\,Tc @ s× d d l m Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d „ Z d „ Z e j
d k r‚ d Z n d Z d „ Z d „ Z
d
„ Z d „ Z e j
d k rÊ e Z e Z n d
„ Z d S( iÿÿÿÿ( t _Nc C sˆ y) t t j d ƒ ƒ } | d k r( | SWn t t f k
rB n Xy' t t j d ƒ } | d k ri | SWn t t f k
rƒ n Xd S( s- try to count the number of CPUs on the systemt SC_NPROCESSORS_ONLNi t NUMBER_OF_PROCESSORSi ( t intt ost sysconft AttributeErrort
ValueErrort environt KeyError( t n( ( s4 /usr/lib/python2.7/dist-packages/mercurial/worker.pyt countcpus s c C s} | j d d ƒ } | rd y t | ƒ } | d k r7 | SWqd t k
r` t j t d ƒ ƒ ‚ qd Xn t t t ƒ d ƒ d ƒ S( Nt workert numcpusi s! number of cpus must be an integeri i ( t configR R t utilt AbortR t mint maxR ( t uit sR
( ( s4 /usr/lib/python2.7/dist-packages/mercurial/worker.pyt _numworkers! s
t posixg{®Gáz„?gêŒ 9Y>)Fc C s6 | | } t | ƒ } | t | | | } | d k S( se try to determine whether the benefit of multiple processes can
outweigh the cost of starting themg333333Ã?( R t _startupcost( R t costperopt nopst lineart workerst benefit( ( s4 /usr/lib/python2.7/dist-packages/mercurial/worker.pyt
worthwhile1 s
c C s<