Skip to content
Snippets Groups Projects
Commit 6fea151b authored by Eck Balázs István's avatar Eck Balázs István
Browse files

Update client.py

parent 7bb24d6c
No related branches found
No related tags found
1 merge request!2Update client.py
...@@ -31,7 +31,7 @@ while True: ...@@ -31,7 +31,7 @@ while True:
amount_received += len(data) amount_received += len(data)
print ('received "%s"' % data) print ('received "%s"' % data)
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S") timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
f = open("/tmp/ping-pog.log", "a") f = open("/tmp/ping-pong.log", "a")
f.write(timestamp +' : ' + data + '\n') f.write(timestamp +' : ' + data + '\n')
f.close() f.close()
time.sleep(1) time.sleep(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment