Module launchmanycore
source code
Manage the downloading of multiple torrents in one process.
logging.Logger
|
logger = logging.getLogger('DebTorrent.launchmanycore')
the logger to send all log messages to for this module
|
Imports:
PSYCO,
psyco,
download_bt1.BT1Download,
RawServer.RawServer,
RateLimiter.RateLimiter,
ServerPortHandler.MultiHandler,
random.seed,
socket.error,
threading.Event,
sys.argv,
sys.exit,
sys,
os,
binascii,
clock.clock,
__init__.createPeerID,
__init__.mapbase64,
__init__.version,
cStringIO.StringIO,
logging,
BT1.AptListener.AptListener,
HTTPHandler.HTTPHandler
|
Formats seconds into a human-readable time.
Formats a given number of seconds into a human-readable time
appropriate for display to the user.
- Parameters:
n (int) - the number of seconds
- Returns:
string
- a displayable representation of the number of seconds
|