def destroyNetwork(nodes):
    print 'Destroying Kademlia network...'
    i = 0
    for node in nodes:
        i += 1
        hashAmount = i*50/amount
        hashbar = '#'*hashAmount
        output = (hashbar, i, amount) % '\r[%-50s] %d/%d'
        sys.stdout.write(output)
        time.sleep(0.15)
        os.kill(node, signal.SIGTERM)
    print
dataset/ETHPy150Open lbryio/lbry/lbrynet/create_network.py/destroyNetwork/swapped operands of `%`