def dlProgress(count, blockSize, totalSize):
    if (totalSize != (- 1)):
        percent = int((((count * blockSize) * 100) / totalSize))
        utils.printProgress(percent)
    else:
        sys.stdout.write(('\r%s bytes downloaded' % (count * blockSize)))
        sys.stdout.flush()
def dlProgress(count, blockSize, totalSize):
    if (totalSize != (- 1)):
        percent = int((((count * blockSize) * 100) / totalSize))
        utils.printProgress(percent)
    else:
        sys.stdout.write(('\r%s bytes downloaded' % (count * blockSize)))
        sys.stdout.flush()