From a28e6fb58466498d7c3938377de04406e04e480d Mon Sep 17 00:00:00 2001 From: Fernando Erd <fce15@inf.ufpr.br> Date: Mon, 7 Nov 2016 14:46:21 -0200 Subject: [PATCH] each machine have your id --- Canguru/tentandop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Canguru/tentandop.py b/Canguru/tentandop.py index a753efa..3adcc4d 100755 --- a/Canguru/tentandop.py +++ b/Canguru/tentandop.py @@ -39,7 +39,6 @@ global HighPriority StartTime = 0 HighPriority = 10 TOKEN = 0 -MACHINE_ID = 1 SEND_PORT = 3131 # Porta que o Servidor envia RECV_PORT = 3131 # Porta que o Servidor recebe @@ -192,7 +191,8 @@ if len(sys.argv) > 1: TOKEN = 1 print 'COMECEI COM O TOKEN' StartTime = time.time() - +print 'ID Dessa maquina, escolha entre 1 e 4' +MACHINE_ID = raw_input () print "Ip da proxima maquina" HOST = raw_input() threadServer = threading.Thread(target=server) -- GitLab